Skip to content

Commit 7e7c1a3

Browse files
authored
ignore: follow redirect
1 parent fca2ea8 commit 7e7c1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/gg

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ ignore() {
181181
ignore_list
182182
else
183183
for template in $@; do
184-
ignore=$(curl --silent "https://www.gitignore.io/api/$template")
184+
ignore=$(curl --silent -L "https://www.gitignore.io/api/$template")
185185
ignore_array=($ignore)
186186

187187
if [ ${ignore_array[5]} == "ERROR:" ]; then

0 commit comments

Comments
 (0)