[PR #46] [MERGED] Panic if Git version is < GitVersionRequired #54

Closed
opened 2026-02-16 10:23:58 -05:00 by yindo · 0 comments
Owner

📋 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: masterHead: git_module_panic


📝 Commits (3)

  • facfbc7 Panic if Git version is < GitVersionRequired
  • 42d2875 Update GitVersionRequired comment
  • 10e8c42 Correct 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.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/git/pull/46 **Author:** [@cez81](https://github.com/cez81) **Created:** 4/18/2017 **Status:** ✅ Merged **Merged:** 4/18/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `git_module_panic` --- ### 📝 Commits (3) - [`facfbc7`](https://github.com/go-gitea/git/commit/facfbc74cdcac005e17e6716d5a5d53eb538c801) Panic if Git version is < GitVersionRequired - [`42d2875`](https://github.com/go-gitea/git/commit/42d287547bac2ace0def897ed1e3797bd7ede998) Update GitVersionRequired comment - [`10e8c42`](https://github.com/go-gitea/git/commit/10e8c427fb361d65185d227d60e85c8f8d61111e) Correct copyright ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `git.go` (+12 -1) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:23:58 -05:00
yindo closed this issue 2026-02-16 10:23:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#54