Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

unknown revision or path not in the working tree when open pull request open in branch #207

Open
mcgurksean opened this issue Oct 17, 2023 · 1 comment
Assignees
Projects

Comments

@mcgurksean
Copy link

mcgurksean commented Oct 17, 2023

Describe the bug:

I am trying to get git diff when new files have been added to a branch.

However, where there is a pull request already open for that branch, the get-diff-action tries to check out that pull request

e.g. get-diff-action/pull/291/merge

Because of this, I get the following error message:

fatal: ambiguous argument 'get-diff-action/integration...get-diff-action/pull/291/merge': unknown revision or path not in the working tree.

Is there any way that I can tell get-diff-action to ignore the pull request and only do a git fetch on the branch.

At present it is trying this:

git fetch --no-tags --no-recurse-submodules '--depth=10000' get-diff-action 'refs/heads/feature/0.1952.1:refs/remotes/get-diff-action/feature/0.1952.1' 'refs/heads/integration:refs/remotes/get-diff-action/integration' 'refs/pull/291/merge:refs/remotes/get-diff-action/pull/291/merge'

@welcome
Copy link

welcome bot commented Oct 17, 2023

🙌 Thanks for opening your first issue here! Be sure to follow the issue template!

@github-actions github-actions bot added this to To do in Backlog Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Backlog
  
To do
Development

No branches or pull requests

2 participants