Skip to content

handle clone correctly when specifying a login/name alias - #1162

Merged
joshaber merged 7 commits into
masterfrom
clone-with-account-repo-alias
Apr 11, 2017
Merged

joshaber merged 7 commits into
masterfrom
clone-with-account-repo-alias

Conversation

@shiftkey

@shiftkey shiftkey commented Apr 10, 2017 •

Copy link
Copy Markdown
Member

Fixes #1150

  • resolve the clone URL when the user specifies an alias
  • re-evaluate the path when the clone directory is updated
  • resolve the clone URL for a valid dotcom repository when no accounts defined

@shiftkey shiftkey changed the title [WIP] handle clone correctly when specifying a login/name alias handle clone correctly when specifying a login/name alias Apr 10, 2017
Comment thread app/src/lib/find-account.ts Outdated

// as a fallback, let's test that this is a public GitHub repository
// because we are still allowed to clone this repository
const userWithoutToken = new User('', getDotComAPIEndpoint(), '', [ ], '', -1, '')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤙

Comment thread app/src/lib/find-account.ts Outdated

// as a fallback, let's test that this is a public GitHub repository
// because we are still allowed to clone this repository
const userWithoutToken = new User('', getDotComAPIEndpoint(), '', [ ], '', -1, '')

This comment was marked as spam.


/**
* Lookup the account associated with the clone (if applicable) and resolve
* the repository alias to the clone URL. Will throw if neither of these

This comment was marked as spam.

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member Author

🍎

Comment thread app/src/models/account.ts
}

/** Create an account which can be used to perform unauthenticated API actions */
public static anonymous(): Account {

This comment was marked as spam.

@joshaber
joshaber merged commit 8c4da5a into master Apr 11, 2017
@joshaber
joshaber deleted the clone-with-account-repo-alias branch April 11, 2017 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants