File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ if git ls-remote --exit-code origin "$BKG_INDEX" &>/dev/null; then
4848 [ -d " $BKG_INDEX " .bak ] || rm -rf " $BKG_INDEX " .bak
4949 git worktree move " $BKG_INDEX " " $BKG_INDEX " .bak & > /dev/null
5050 git fetch --depth=1 origin " $BKG_INDEX "
51- git branch --track -f " $BKG_INDEX " " origin/$BKG_INDEX " 2> /dev/null || git branch -f " $BKG_INDEX " " origin/$BKG_INDEX "
51+ git show-ref --verify --quiet " refs/remotes/origin/$BKG_INDEX " || git fetch origin " $BKG_INDEX :refs/remotes/origin/$BKG_INDEX "
52+ git branch --track -f " $BKG_INDEX " " origin/$BKG_INDEX " 2> /dev/null || git branch -f " $BKG_INDEX " " origin/$BKG_INDEX "
5253 BKG_IS_FIRST=true
5354else
5455 fd_list=$( find . -type f -o -type d | grep -vE " ^\.($|\/(\.git\/*|.*\.md$))" )
You can’t perform that action at this time.
0 commit comments