-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before, the return value of fetchFrom: was used to checkout the default branch when cloning. Since dcc1389, this is only needed for the internal implementation, so the return value is not needed for the general fetchFrom: anymore. This allows us to not return the refs when fetching externally, fixing fetching via ssh.
- Loading branch information
Showing
3 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 1 addition & 6 deletions
7
src/FileSystem-Git.package/FileSystemGitRepository.class/instance/fetchAllExternalFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
git porcelain - external | ||
fetchAllExternalFrom: aRemoteName | ||
| remote url | | ||
remote := self unitOfWork remoteNamed: aRemoteName. | ||
remote ifNil: [(GitRemoteUndefined remote: remote) signal: 'No URL configured.']. | ||
self externalGitDo: ('fetch {1}{2}' format: { | ||
GitFeatureFlags pruneWhenFetching ifTrue: ['--prune '] ifFalse: ['']. | ||
aRemoteName}). | ||
self refsChangedExternally. | ||
url := remote url ifNil: [(GitRemoteUndefined remote: remote) signal: 'No URL configured.']. | ||
^ (GitAbstractProtocol url: url) refs | ||
self refsChangedExternally. |
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepository.class/instance/fetchFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters