mirror of
https://github.com/go-gitea/git.git
synced 2026-07-19 14:33:37 -04:00
[PR #46] [MERGED] Panic if Git version is < GitVersionRequired #54
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-gitea/git/pull/46
Author: @cez81
Created: 4/18/2017
Status: ✅ Merged
Merged: 4/18/2017
Merged by: @appleboy
Base:
master← Head:git_module_panic📝 Commits (3)
facfbc7Panic if Git version is < GitVersionRequired42d2875Update GitVersionRequired comment10e8c42Correct copyright📊 Changes
1 file changed (+12 additions, -1 deletions)
View changed files
📝
git.go(+12 -1)📄 Description
Panic during init() if Git version is < GitVersionRequired.
I have set the min version to 1.7.10 as required by SetDefaultBranch (https://github.com/go-gitea/git/blob/master/repo_branch.go#L58). I'm not sure why 1.7.10 is required for SetDefaultBranch, symbolic-ref has been in there for a while https://git-scm.com/docs/git-symbolic-ref/1.4.4.
Ref: https://github.com/go-gitea/gitea/issues/1133
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.