Skip to content

Commit 20c0702

Browse files
committed
feat(git-repo): clone without extra blobs for speed and space
1 parent 31bc17d commit 20c0702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zsh/startup/git-rc.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ function git-repo() {
1212
echo "The 'gh' utility is required: https://github.com/cli/cli"
1313
fi
1414

15-
gh repo clone "$url" "$clonedir" || return $?
15+
gh repo clone "$url" "$clonedir" -- --filter=blob:none || return $?
1616
else
17-
git clone "$url" "$clonedir" || return $?
17+
git clone --filter=blob:none "$url" "$clonedir" || return $?
1818
fi
1919
fi
2020

0 commit comments

Comments
 (0)