File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ if git ls-remote --exit-code origin "$BKG_INDEX" &>/dev/null; then
4646 git worktree remove -f " $BKG_INDEX " .bak & > /dev/null
4747 [ -d " $BKG_INDEX " .bak ] || rm -rf " $BKG_INDEX " .bak
4848 git worktree move " $BKG_INDEX " " $BKG_INDEX " .bak & > /dev/null
49- git fetch origin " $BKG_INDEX "
49+ git fetch --depth=1 origin " $BKG_INDEX "
5050 BKG_IS_FIRST=true
5151else
5252 fd_list=$( find . -type f -o -type d | grep -vE " ^\.($|\/(\.git\/*|.*\.md$))" )
5353 git stash
5454 git switch --orphan " $BKG_INDEX "
5555 xargs rm -rf <<< " $fd_list"
5656 git add .
57- git commit --allow-empty -m " init index "
57+ git commit --allow-empty -m " init $BKG_INDEX "
5858 git push -u origin " $BKG_INDEX "
5959 git checkout " $( [ -n " $GITHUB_BRANCH " ] && echo " $GITHUB_BRANCH " || echo " $BKG_BRANCH " ) "
6060 git stash pop || true
You can’t perform that action at this time.
0 commit comments