Skip to content

Commit 9f67c3e

Browse files
committed
Fix "git fetch" to unshallow if possible too
1 parent 3ce512a commit 9f67c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/github-actions/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ eval "${GENERATE_STACKBREW_LIBRARY:-./generate-stackbrew-library.sh}" > "$BASHBR
2929
# if we don't appear to be able to fetch the listed commits, they might live in a PR branch, so we should force them into the Bashbrew cache directly to allow it to do what it needs
3030
if ! bashbrew from "$image" &> /dev/null; then
3131
bashbrewGit="${BASHBREW_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/bashbrew}/git"
32-
git -C "$bashbrewGit" fetch --quiet "$PWD" HEAD > /dev/null
32+
git -C "$bashbrewGit" fetch --quiet --update-shallow "$PWD" HEAD > /dev/null
3333
bashbrew from "$image" > /dev/null
3434
fi
3535

0 commit comments

Comments
 (0)