johnkeeping / git-integration

Easily manage integration branches in Git
http://johnkeeping.github.io/git-integration
GNU General Public License v2.0
34 stars 4 forks source link

Make --version work in non-repository working directories #4

Closed matthewlmcclure closed 10 years ago

matthewlmcclure commented 10 years ago

Wait to load git-sh-setup. It fails to load outside a repository.

Signed-off-by: Matt McClure matthewlmcclure@gmail.com

johnkeeping commented 10 years ago

I'm not sure about this change. I noticed that this had failed in the homebrew tests, but I don't think forcing --version to be the first argument is the right way to fix it.

I don't think I mind special-casing "only the --version option is given" though, so I would merge this if you drop the last hunk.

matthewlmcclure commented 10 years ago

I removed the last hunk of the original change.

matthewlmcclure commented 10 years ago

I changed the == bashism to =. I think that addresses all of your comments.