aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-23 16:16:00 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:45 +0000
commit1061b2c0d2eeda8549c2f4afcf709316c1d8243e (patch)
tree8a7d58b5e96ac1846842bc199ffd2fc4cb7e370a /libs
parent3f0e80ac4c7d2cea41ff102a3c6ca1a99ae3908a (diff)
downloadlibrebootfr-1061b2c0d2eeda8549c2f4afcf709316c1d8243e.tar.gz
librebootfr-1061b2c0d2eeda8549c2f4afcf709316c1d8243e.zip
libs: git: Checkout with -B to allow recreating branches
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/git2
1 files changed, 1 insertions, 1 deletions
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