Lines Matching full:branch
34 def get_local_branch_commit(branch): argument
36 Returns the commit sha1 for the *local* branch named "staging"
38 result = subprocess.run(['git', 'rev-parse', branch],
44 if result == branch:
45 raise ValueError("There's no local branch named '%s'" % branch)
47 raise ValueError("Branch '%s' HEAD doesn't look like a sha1" % branch)
140 parser.add_argument('-b', '--branch', type=str, default="staging",
141 help=('Specify the branch to check. '
142 'Use HEAD for your current branch. '
148 'commit associated with the default branch '
163 args.commit = get_local_branch_commit(args.branch)