Skip to content

Commit

Permalink
Merge pull request #16 from groggemans/git.clone
Browse files Browse the repository at this point in the history
Fixed git.clone issue when using single argument
  • Loading branch information
Zach Kelling committed Dec 26, 2015
2 parents ff3fd61 + 460b3fc commit 20721ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.bash
Expand Up @@ -10,7 +10,7 @@ load pkg
# Clone a Git repo.
git.clone() {
if [ -z "$3" ]; then
git clone --depth 1 "$1" "$2"
git clone --depth 1 "$@"
else
git clone --depth 1 "$1" "$2" --branch "$3"
fi
Expand Down

0 comments on commit 20721ed

Please sign in to comment.