Skip to content

Commit 3121d95

Browse files
committed
fetch --depth=1
1 parent 9376629 commit 3121d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
5151
else
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

0 commit comments

Comments
 (0)