From 1061b2c0d2eeda8549c2f4afcf709316c1d8243e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 23 Dec 2016 16:16:00 +0100 Subject: libs: git: Checkout with -B to allow recreating branches Signed-off-by: Paul Kocialkowski --- libs/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/git') diff --git a/libs/git b/libs/git index ead6651d..1b451724 100755 --- a/libs/git +++ b/libs/git @@ -61,7 +61,7 @@ git_branch_create() { ( cd "$repository_path" - git checkout -b "$branch" + git checkout -B "$branch" if ! [ -z "$revision" ] then -- cgit v1.2.3-70-g09d2