X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=git-add.sh;h=4bf41281d5554f9b1da103b0360eebc411a435eb;hb=f7eb290fa0620cebc033e80216c74ab9d1573a6c;hp=a8498c729ab3188bd21dd6a54ddc77d4c34ac48a;hpb=caf4f582b2bb4d5582540aa49d29749b2600cd03;p=git.git diff --git a/git-add.sh b/git-add.sh index a8498c72..4bf41281 100755 --- a/git-add.sh +++ b/git-add.sh @@ -23,10 +23,10 @@ if test -f "$GIT_DIR/info/exclude" then git-ls-files -z \ --exclude-from="$GIT_DIR/info/exclude" \ - --others --exclude-per-directory=.gitignore "$@" + --others --exclude-per-directory=.gitignore -- "$@" else git-ls-files -z \ - --others --exclude-per-directory=.gitignore "$@" + --others --exclude-per-directory=.gitignore -- "$@" fi | case "$show_only" in true)