]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build-integration-branch: s/prefix/postfix/ 32303/head
authorKefu Chai <kchai@redhat.com>
Tue, 17 Dec 2019 15:21:06 +0000 (23:21 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Dec 2019 15:48:02 +0000 (23:48 +0800)
prefix is not defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/build-integration-branch

index ad960a6a7639759371cf4c5252c381b677aca780..1dae51f9306184b6f2409179b1f0e28830c14588 100755 (executable)
@@ -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`.
 
@@ -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: