Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
makepkg wrapper with shallow git clones
#!/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