Skip to content

Commit

Permalink
git-ignore doesnt fail if .gitignore file dont exists yet
Browse files Browse the repository at this point in the history
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
  • Loading branch information
jweslley authored and tj committed May 19, 2011
1 parent a0de28f commit 38d8a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 38d8a22

Please sign in to comment.