Skip to content

Instantly share code, notes, and snippets.

@andrewgregory
Created September 2, 2016 19:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewgregory/770cbedfa2da3817d762483155a330b8 to your computer and use it in GitHub Desktop.
Save andrewgregory/770cbedfa2da3817d762483155a330b8 to your computer and use it in GitHub Desktop.
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