From f3d68d400f5cab374d7ab20a9d527f46ff744556 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 9 Mar 2010 11:18:07 -0500 Subject: [fedpkg-vcs] Use correct branch when switching to default revision --- fedpkg-vcs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 fedpkg-vcs diff --git a/fedpkg-vcs b/fedpkg-vcs old mode 100755 new mode 100644 index 7093241..b5b1a1f --- a/fedpkg-vcs +++ b/fedpkg-vcs @@ -118,9 +118,9 @@ class GitVcs(Vcs): def switch_to_revision(self, directory, newid): if newid is None: - newid = 'master' + newid = self._branch or 'master' self._vcs_exec(['git', 'checkout', newid], cwd=directory) - + def get_commit_summary_as_filename(self, directory, commitid): output = subprocess.Popen(['git', 'show', '--format=%f', commitid], stdout=subprocess.PIPE, cwd=directory).communicate()[0] return output.split('\n')[0] @@ -479,7 +479,7 @@ def main(): if len(args) < 1: usage(1) - + cmd = args[0] if cmd == 'pull-update': cmd = 'pull-retarget' -- cgit