Handle 'git checkout' error gracefully
This commit is contained in:
parent
c447d7eb9d
commit
bfdc145d92
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ cd "${gitdir}"
|
||||||
remote=$("${git}" remote | head -n1)
|
remote=$("${git}" remote | head -n1)
|
||||||
if [ "$(git branch --show-current)" != "${branch}" ]; then
|
if [ "$(git branch --show-current)" != "${branch}" ]; then
|
||||||
change_branch "${remote}" "${branch}"
|
change_branch "${remote}" "${branch}"
|
||||||
echo "[-] Set filemode. This might take a while"
|
echo "[-] Adjust filemode for new branch. This might take a while"
|
||||||
doas -u root /bin/chmod -R "${mode}" "${gitdir}"
|
doas -u root /bin/chmod -R "${mode}" "${gitdir}"
|
||||||
fi
|
fi
|
||||||
set -x
|
set -x
|
||||||
|
|
Loading…
Reference in a new issue