Fix branch checkout failing
This commit is contained in:
parent
a30b1d564d
commit
b8218562a5
1 changed files with 2 additions and 3 deletions
|
@ -10,11 +10,10 @@ if [[ ! -d $DOTFILES_PATH ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$DOTFILES_PATH"
|
cd "$DOTFILES_PATH"
|
||||||
git checkout $branch
|
|
||||||
|
|
||||||
git remote set-url origin https://github.com/cyplo/dotfiles.git
|
git remote set-url origin https://github.com/cyplo/dotfiles.git
|
||||||
|
git fetch -p
|
||||||
|
git checkout $branch
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
git remote set-url origin git@github.com:cyplo/dotfiles.git
|
git remote set-url origin git@github.com:cyplo/dotfiles.git
|
||||||
# might fail on CI where there are no secret keys
|
# might fail on CI where there are no secret keys
|
||||||
set +e
|
set +e
|
||||||
|
|
Loading…
Reference in a new issue