aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp-pull
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-12-23 23:54:40 +0100
committerGuido Günther <agx@sigxcpu.org>2009-12-23 23:55:22 +0100
commitcf45595d9bea1ec95f25c33ce5b63d24235ad7f5 (patch)
treec2db263e0690bee43bb3873a1e4ecf6bef24b9cb /gbp-pull
parentd4366123fef2903f2ce4367edae10a1895a5662b (diff)
Don't hardcode pristine-tar branch
Diffstat (limited to 'gbp-pull')
-rwxr-xr-xgbp-pull8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp-pull b/gbp-pull
index a12de882..0352d7c0 100755
--- a/gbp-pull
+++ b/gbp-pull
@@ -22,7 +22,8 @@
import sys
import os, os.path
-from gbp.command_wrappers import (GitFetch, GitMerge, Command, CommandExecFailed)
+from gbp.command_wrappers import (GitFetch, GitMerge, Command,
+ CommandExecFailed, PristineTar)
from gbp.config import (GbpOptionParser, GbpOptionGroup)
from gbp.errors import GbpError
from gbp.git import (GitRepositoryError, GitRepository)
@@ -46,7 +47,6 @@ def fast_forward_branch(branch, repo, options):
def main(argv):
changelog = 'debian/changelog'
retval = 0
- pristine_tar = 'pristine-tar'
parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
usage='%prog [options] - safely update a repository from remote')
@@ -81,8 +81,8 @@ def main(argv):
if repo.has_branch(branch):
branches += [ branch ]
- if repo.has_branch(pristine_tar) and options.pristine_tar:
- branches += [ pristine_tar ]
+ if repo.has_branch(PristineTar.branch) and options.pristine_tar:
+ branches += [ PristineTar.branch ]
(ret, out) = repo.is_clean()
if not ret: