]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build-integration-branch: don't fail on existing branch 33093/head
authorSage Weil <sage@redhat.com>
Wed, 5 Feb 2020 22:56:42 +0000 (16:56 -0600)
committerSage Weil <sage@redhat.com>
Wed, 5 Feb 2020 22:56:42 +0000 (16:56 -0600)
This behavior is too annoying, and you can always get back to something
clobbered with 'git reflog'.

Signed-off-by: Sage Weil <sage@redhat.com>
src/script/build-integration-branch

index 1dae51f9306184b6f2409179b1f0e28830c14588..7430237ceceba930bfa6cd010a3440a86c833395 100755 (executable)
@@ -86,6 +86,7 @@ print("branch %s" % branch)
 
 # assemble
 print('--- creating branch %s' % branch)
+r = call(['git', 'branch', '-D', branch])
 r = call(['git', 'checkout', '-b', branch])
 assert not r
 for pr in prs: