-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add options to pass a repo path, and to handle lightweight tags #11
base: master
Are you sure you want to change the base?
Conversation
@@ -109,6 +113,7 @@ func createRelease(r *git.Repository, verTag string) (*Release, error) { | |||
func findVersionHash(r *git.Repository, verTag string) (plumbing.Hash, error) { | |||
if verTag == "" { | |||
ref, err := r.Head() | |||
//log.Printf(ref.String()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
LGTM other than the commented code but not sure who else should review |
Looks from the merge history like @wolffcm or @jsternberg should have a look. |
if !lightweightOK { | ||
return nil, plumbing.ZeroHash, errors.Wrap(err, "could not get tag object from maxRef") | ||
} else { | ||
return maxVersion, maxRef.Hash(), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate a bit more? I'm not quite sure what you're asking.
Closes #10 and #5.
Also adds an option to pass an absolute path to the CLI, which makes running this tool easier under a variety of conditions.