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

git name-rev --exclude is not available in git <2.13 - breaking commit history #11917

Closed
Ulyev-ad opened this issue Jun 16, 2020 · 6 comments · Fixed by #12347
Closed

git name-rev --exclude is not available in git <2.13 - breaking commit history #11917

Ulyev-ad opened this issue Jun 16, 2020 · 6 comments · Fixed by #12347

Comments

@Ulyev-ad
Copy link

I can't view the commit history, error.
image
Error:
image

In logs:
2020/06/16 23:49:56 ...uters/repo/commit.go:311:Diff() [E] commit.GetBranchName: exit status 129 - error: unknown option exclude'
usage: git name-rev [options] ...
or: git name-rev [options] --all
or: git name-rev [options] --stdin

    --name-only           print only names (no SHA-1)
    --tags                only use tags to name the commits
    --refs <pattern>      only use refs matching <pattern>

    --all                 list all commits reachable from all refs
    --stdin               read from stdin
    --undefined           allow to print `undefined` names
    --always              show abbreviated commit object as fallback

`

@zeripath
Copy link
Contributor

What version of git do you have?

@Ulyev-ad
Copy link
Author

Oh, I forgot to update. Yes, thank you!

@bobemoe
Copy link
Contributor

bobemoe commented Jul 14, 2020

Which version is needed? I'm getting this error but no git updates:
git is already the newest version (1:2.11.0-3+deb9u7).

@bobemoe
Copy link
Contributor

bobemoe commented Jul 14, 2020

I'm using Debian 9. I've enabled the backports repo and managed to install Git 2.20.1 All is working now :)

@zeripath
Copy link
Contributor

OK I'm reopening this as git name-rev --exclude is not available in git <2.13.

@zeripath zeripath reopened this Jul 28, 2020
@zeripath zeripath changed the title I can't view the commit history, error git name-rev --exclude is not available in git <2.13 - breaking commit history Jul 28, 2020
zeripath added a commit to zeripath/gitea that referenced this issue Jul 28, 2020
Fix go-gitea#11917

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor

Bug introduced by #11847

zeripath added a commit that referenced this issue Jul 28, 2020
Fix #11917

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants