Closed alexsaveliev closed 9 years ago
replaced "git rev-parse SPEC^{commit}" with short-hand "git rev-parse SPEC^0" because {} has a special meaning in Windows
I wanted to verify that doing this wouldn't cause a regression for #37, and it appears to be okay.
I wanted to verify that doing this wouldn't cause a regression for #37 https://github.com/sourcegraph/go-vcs/issues/37, but it appears to be okay.
https://git-scm.com/docs/git-rev-parse states
...As a special rule,
https://git-scm.com/docs/git-rev-parse states
...As a special rule,
^0 means the commit itself and is used when is the object name of a tag object that refers to a commit object.... so ^0 is identical to ^{commit}.
Great, it's good that the docs confirm it too.
Other than comments, LGTM. Why is Travis failing?
Travis is failing on Go 1.2 and 1.3, but passing on 1.4 and tip. It's because the golang.org/x/crypto/ssh
package uses crypto.Signer
which is available on Go 1.4 and later.
I think we should drop Go 1.2 and 1.3, and use 1.4, 1.5, and tip. 1.3 is more than 1 major version behind current release.
yeah, let's go ahead and drop everything below 1.4. @alexsaveliev can you update the travis.yml
?
Updated travis.yml
to include only Go 1.4+
TODO list: