-
-
Save andrewgregory/770cbedfa2da3817d762483155a330b8 to your computer and use it in GitHub Desktop.
makepkg wrapper with shallow git clones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git() { | |
if [[ $# -gt 1 && $1 == 'clone' ]]; then | |
/bin/git "$@" --depth=1 | |
else | |
/bin/git "$@" | |
fi | |
} | |
source /bin/makepkg "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment