Skip to content
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

Issue when not using "master" for main branch #30

Open
cmonte905 opened this issue Feb 4, 2022 · 0 comments
Open

Issue when not using "master" for main branch #30

cmonte905 opened this issue Feb 4, 2022 · 0 comments

Comments

@cmonte905
Copy link

Got an error when the master branch is called "main" and not "master":

panic: GetCurrentVersion failed: failed to get master branch at 'refs/heads/master, 'refs/remotes/origin/master': reference not found

goroutine 1 [running]:
github.com/syncromatics/gogitver/cmd/gogitver/cmd.runRoot(0xcf3140, 0xd282f0, 0x0, 0x0)
	/go/pkg/mod/github.com/syncromatics/[email protected]/cmd/gogitver/cmd/root.go:108 +0x177
github.com/spf13/cobra.(*Command).execute(0xcf3140, 0xc0001121f0, 0x0, 0x0, 0xcf3140, 0xc0001121f0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xcf3140, 0xc000000180, 0x200000003, 0xc000000180)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/syncromatics/gogitver/cmd/gogitver/cmd.Execute()
	/go/pkg/mod/github.com/syncromatics/[email protected]/cmd/gogitver/cmd/root.go:46 +0x31
main.main()
	/go/pkg/mod/github.com/syncromatics/[email protected]/cmd/gogitver/main.go:6 +0x25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant