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

fatal: ambiguous argument '0.4.0..HEAD': unknown revision or path not in the working tree. #135

Closed
artem-tomyuk opened this issue Feb 9, 2022 · 8 comments

Comments

@artem-tomyuk
Copy link

Hi,

getting errors(log below) on a latest version of github-tag-action 1.38 while bumping the tag, so i decided to rollback version of github-tag-action to 1.36.0 and it solved the issue.
so i guess errors are related to latest changes in 1.38 or 1.37 tag.

*** CONFIGURATION ***
DEFAULT_BUMP: minor
WITH_V: true
RELEASE_BRANCHES: master,main
CUSTOM_TAG:
SOURCE: .
DRY_RUN: false
INITIAL_VERSION: 0.0.0
TAG_CONTEXT: repo
PRERELEASE_SUFFIX: beta
VERBOSE: true
Is master a match for devel
Is main a match for devel
pre_release = true
From https://github.com/kastapost/auth.kastapost.ua

  • [new branch] master -> origin/master
  • [new branch] rights-requests -> origin/rights-requests
  • [new branch] smart-login -> origin/smart-login
  • [new branch] themed-auth -> origin/themed-auth
  • [new branch] wms-auth -> origin/wms-auth
  • [new tag] v1.0.0 -> v1.0.0
  • [new tag] v1.1.0-beta.1 -> v1.1.0-beta.1
  • [new tag] v1.1.0-beta.2 -> v1.1.0-beta.2
  • [new tag] v1.1.0-beta.3 -> v1.1.0-beta.3
  • [new tag] v2019.2 -> v2019.2
    fatal: ambiguous argument '1.0.0..HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git [...] -- [...]'
    fatal: ambiguous argument '1.0.0': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git [...] -- [...]'

pre-minor
Bumping tag .
New tag v1.1.0-beta.1
fatal: tag 'v1.1.0-beta.1' already exists
"message": "Reference already exists",
"documentation_url": "https://docs.github.com/rest/reference/git#create-a-reference"
}
Error: Tag was not created properly.

@inih
Copy link

inih commented Feb 10, 2022

I'm also running into the same issue and getting the same error. Reverting to version 1.36.0 fixed it.

@craigrileyuk
Copy link

Same:

*** CONFIGURATION ***
	DEFAULT_BUMP: none
	WITH_V: true
	RELEASE_BRANCHES: main
	CUSTOM_TAG: 
	SOURCE: .
	DRY_RUN: false
	INITIAL_VERSION: 0.0.0
	TAG_CONTEXT: repo
	PRERELEASE_SUFFIX: beta
	VERBOSE: true
Is main a match for main
pre_release = false
fatal: ambiguous argument '0.0.13..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument '0.0.13': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Default bump was set to none. Skipping...

@alexeyatbluescape
Copy link

I no longer get this error with my fix: #155.

feel free to test with alexeyatbluescape/github-tag-action@bugfix/semver-empty-results

@Norgul
Copy link

Norgul commented May 5, 2022

I am using v1.39.0 and issue is still there.

@justin-newman
Copy link

looks like there is a PR that is supposed to fix this. it just needs a review and all that: #157

@ChrisHolcomb
Copy link

I tried using 1.39 and had same issue, just switched to 1.36 and works fine now.

@sammcj
Copy link
Collaborator

sammcj commented Sep 13, 2022

Hello - is this still an issue with v1.45.0?

@sbe-arg
Copy link
Collaborator

sbe-arg commented Sep 27, 2022

Has been resolved, please reopen if necesary

@sbe-arg sbe-arg closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants