mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Added .getOriginalURL.
This commit is contained in:
@@ -243,12 +243,15 @@ export default class GitRepositoryAsync {
|
||||
.catch(_ => null)
|
||||
}
|
||||
|
||||
// Public: Returns the origin url of the repository.
|
||||
// Public: Get the URL for the 'origin' remote.
|
||||
//
|
||||
// * `path` (optional) {String} path in the repository to get this information
|
||||
// for, only needed if the repository has submodules.
|
||||
//
|
||||
// Returns a {Promise} which resolves to the {String} origin url of the
|
||||
// repository.
|
||||
getOriginURL (_path) {
|
||||
throw new Error('Unimplemented')
|
||||
return this.getConfigValue('remote.origin.url', _path)
|
||||
}
|
||||
|
||||
// Public: Returns the upstream branch for the current HEAD, or null if there
|
||||
|
||||
Reference in New Issue
Block a user