How do I resolve the git-svn error 'refs/remotes/git-svn$: command returned error: 1'?

To resolve this error, specify the GIT_SVN_ID refname you want to fetch information from. Like:

git svn show-ignore -i trunk > .gitignore