From 08936d4ee431ed67dbc75214b364fad42fb72900 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 27 Jul 2012 17:30:39 +0200 Subject: [PATCH] Support specifying a SHA1 as version --- vcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcs.py b/vcs.py index b700b6e..9c91e93 100644 --- a/vcs.py +++ b/vcs.py @@ -36,13 +36,13 @@ class Git: branch = repo.heads[branchname] else: branch = repo.create_head(branchname, self.commit) - if isBranch: + if isBranch: # track remote branch branch.set_tracking_branch(origin.refs[branchname]) # update it to the latest remote commit branch.checkout() repo.git.rebase(self.commit) print "...done", - if repo.head.reference.commit != repo.refs[self.commit].commit: + if repo.head.reference.commit != repo.commit(self.commit): print "(keeping local patches around)", print -- 2.30.2