I am trying to use go-git to find the SHA1 of origin/master
, after I have already done the equivalent of git fetch --all
. However, go-git does not appear to support either:
git ls-remote [email protected]:StevenACoffman/toolbox.git
git rev-parse origin/master
Is there an alternative way to determine the SHA1 of origin/master
using go-git?
Whoops!
git rev-parse
is supported! Execute the following with./main.go $PWD origin/master
: