Skip to content

Commit 5320194

Browse files
committed
pacman-helper: make sure that the .git/info/ directory exists
... before trying to write to it... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d17ab9b commit 5320194

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pacman-helper.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ quick_action () { # <action> <file>...
224224
git -C "$dir" config set remote.origin.partialCloneFilter blob:none &&
225225
git -C "$dir" config set core.sparseCheckout true &&
226226
git -C "$dir" config set core.sparseCheckoutCone false &&
227+
mkdir -p "$dir"/.git/info &&
227228
printf '%s\n' '/git-*.db*' '/git-*.files*' >"$dir"/.git/info/sparse-checkout &&
228229
printf '%s\n' '/git-for-windows.db*' '/git-for-windows.files*' >"$dir"/.git/info/exclude &&
229230
mkdir "$dir/sources" ||

0 commit comments

Comments
 (0)