diff --git a/bin/git-ignore b/bin/git-ignore index d7a6fed..625a9e6 100755 --- a/bin/git-ignore +++ b/bin/git-ignore @@ -1,7 +1,7 @@ #!/bin/sh if test $# -eq 0; then - cat .gitignore + test -f .gitignore && cat .gitignore else for pattern in $@; do echo $pattern >> .gitignore