Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error if branch and file of same name exits - fatal: ambiguous argument #264

Closed
Assignees
Byron
@psykx

Description

@psykx

When calling theiter_commits method it throws anfatal: ambiguous argument error in case the provided branch has the same name as a file.

Scenario:

> git branch -a*test> lstest

python:

r=git.repo.Repo(".")b=r.branches[0][cforcinr.iter_commits(r)]'git rev-list test'returnedwithexitcode128stderr:'fatal: ambiguous argument 'test':bothrevisionandfilenameUse'--'toseparatepathsfromrevisions,likethis:'git <command> [<revision>...] -- [<file>...]'

As of git I would simply add--, but what am I supposed to do in GitPython?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp