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

Unable to run action without setting source control range #10

Open
ghensto opened this issue Jun 11, 2021 · 4 comments
Open

Unable to run action without setting source control range #10

ghensto opened this issue Jun 11, 2021 · 4 comments

Comments

@ghensto
Copy link

ghensto commented Jun 11, 2021

I keep getting this error "unknown revision or path not in the working tree."

@crathert
Copy link

Had this issue as well. Use 'origin/{branch name}'.

@ghensto
Copy link
Author

ghensto commented Aug 2, 2021

I get the following error unless I use connorsmallman/[email protected]:

Getting range origin/develop...origin/master commit logs
fatal: ambiguous argument 'origin/develop...origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

@blazzy
Copy link

blazzy commented Feb 23, 2022

It looks like github's v2 action for checking out your uses some new fancy flags:

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +...

I suspect this isn't fetching all the branches, tags and such it normally would have. Skimming the docs for the action I didn't spot an option for fetching extra branches I'm interested in, so I just fell back to using v1 of the github checkout action.

@awconstable
Copy link

awconstable commented Nov 8, 2022

Setting fetch-depth: 0 in actions/checkout@v3 worked for me with connorsmallman/[email protected]

...
steps:
    - name: Checkout
      uses: actions/checkout@v3
      with:
        fetch-depth: 0
...

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

4 participants