Permalink
Browse files

Wrap $@ in double quotes to preserve blank args

  • Loading branch information...
1 parent aa7dd47 commit 6d297aecba4459c042709ab061be33277a3238ae @ndbroadbent ndbroadbent committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/git/tools.sh
View
@@ -50,7 +50,7 @@ __git_ignore() {
}
# Always expand args
git_ignore() {
- exec_scmb_expand_args __git_ignore $@
+ exec_scmb_expand_args __git_ignore "$@"
}
# Add one git ignore rule, just for your machine
@@ -64,7 +64,7 @@ __git_exclude_basename() {
__git_ignore "$(basename "$1")" ".git/info/exclude"
}
git_exclude_basename() {
- exec_scmb_expand_args __git_exclude_basename $@
+ exec_scmb_expand_args __git_exclude_basename "$@"
}

0 comments on commit 6d297ae

Please sign in to comment.