diff --git a/bin/git-ignore b/bin/git-ignore index 7cac42b..fe4320d 100755 --- a/bin/git-ignore +++ b/bin/git-ignore @@ -4,5 +4,7 @@ if [ -z "$@" ] then $(git config --get core.editor) $(git rev-parse --show-toplevel)/.git/info/exclude else - ls -d "$@" >> "$(git rev-parse --show-toplevel)/.git/info/exclude" + for file in "$@" + do echo "$file" >> "$(git rev-parse --show-toplevel)/.git/info/exclude" + done fi