diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-06-13 21:14:48 +0530 |
---|---|---|
committer | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-06-13 21:14:48 +0530 |
commit | 033a7e91de4e15c7da96f4ab21454c5f6e3b2fb6 (patch) | |
tree | 24ce7b17792615dff6a2cf8546448a88ab9d1d21 | |
parent | 854f2b6ef4f9ea1c304b2e77d552b930b28e7053 (diff) | |
download | git-repo-033a7e91de4e15c7da96f4ab21454c5f6e3b2fb6.tar.gz |
DownloadPatchSet: fetch the change only, and nothing else.
* Previously, it would run `git fetch <remote.name> <change refspec>
<remote.fetch>, which would fetch all the branches, even if 'sync-c'
was set to true in the manifest.
* Fix that, since all it needs to fetch is the change that was asked
for, and nothing else.
* For some more info, refer to the discussion on:
I42a9d419b51f5da03f20a640ea68993cda4b6500
Change-Id: Ibc801695d56fc16e56f999e0f61393f54461785f
-rw-r--r-- | project.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1236,7 +1236,6 @@ class Project(object): | |||
1236 | cmd = ['fetch', remote.name] | 1236 | cmd = ['fetch', remote.name] |
1237 | cmd.append('refs/changes/%2.2d/%d/%d' \ | 1237 | cmd.append('refs/changes/%2.2d/%d/%d' \ |
1238 | % (change_id % 100, change_id, patch_id)) | 1238 | % (change_id % 100, change_id, patch_id)) |
1239 | cmd.extend(list(map(str, remote.fetch))) | ||
1240 | if GitCommand(self, cmd, bare=True).Wait() != 0: | 1239 | if GitCommand(self, cmd, bare=True).Wait() != 0: |
1241 | return None | 1240 | return None |
1242 | return DownloadedChange(self, | 1241 | return DownloadedChange(self, |