Skip to content

Commit

Permalink
build-integration-branch: s/prefix/postfix/
Browse files Browse the repository at this point in the history
prefix is not defined.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Dec 17, 2019
1 parent 1b900fc commit 67cf46d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/script/build-integration-branch
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Builds integration branches. Something similar to
$ git checkout -b branch-name
$ for b in $(get-branches-from-github) ; do
$ git pull b
> git pull b
> done
Requires `~/.github_token`.
Expand Down Expand Up @@ -39,14 +40,15 @@ repo = "ceph/ceph"
try:
from docopt import docopt
arguments = docopt(__doc__.format(postfix=postfix))
print(arguments)
label = arguments['<label>']
branch = label if arguments['--no-date'] else label + prefix
branch = label
if not arguments['--no-date']:
branch += postfix
except ImportError:
# Fallback without docopt.
label = sys.argv[1]
assert len(sys.argv) == 2
branch = label + prefix
branch = label + postfix


with open(os.environ['HOME'] + '/.github_token', 'r') as myfile:
Expand Down

0 comments on commit 67cf46d

Please sign in to comment.