-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
--end-of-options is not supported on git 2.35.1 and 2.25.1 #77
Comments
Whats even weirder is that your pipeline also runs on ubuntu-latest but here it seems to work. For now i've reverted back to |
Hi, thanks for report! I tried fix it in version 4.0.4. Please try if it solves issue. |
Thank you very much. Will try it tomorrow morning at work |
The update has worked perfectly. Thank You! |
@janpecha It works for the checkout, but isn't the issue the same for all the other commands as well? |
Yep for me too. Wanted to report it but github had massive problems that day and i simply forgot. The |
@flopana @LeoColomb Hi, how you call $repo->pull(['origin', 'branch_name']); |
@janpecha I don't pull anything on my side. See my usage here: https://github.com/roots/wordpress-packager/blob/2f1e7ed756bad215c5f1a1c71ca89c59185fb06e/src/Target.php#L68-L82 |
@LeoColomb sorry, I overlooked it :) try |
@janpecha Ok, yes, I see what you mean. Lines 474 to 485 in 8a84f69
So I guess, it would be "better" to actually do: $this->gitRepo->push("origin refs/tags/{$version}"); Not a big fan, but should work, right? |
I just changed PHPDoc for this methods - 24f4e51#diff-a6f1a39ec7e0b5e21136926e7fa3b9700988e97d15b860a2f6d48a655e2de571. It accepts |
All good, the suggested change fixes the runs, and it actually makes sense. |
|
@zerkms Hi, what do you mean? |
return (new Git())->cloneRepository($url, $path, ['--recurse-submodules']); |
UPD: oh I understand now, I run it in a container with a quite old git (2.17), that's why it fails. My apologies. |
Since 4.0.3 I'm having a problem with the push command. This results in the following command which return an error as the "remote" (origin) should be placed after the GIT command (push):
If you run the command with the right order you have no problem:
|
Hello, how you call |
Yes, can do what you say or also Previously I was using it like this |
Created PR to check git version and remove --end-of-options option for git < 2.24 |
In Commit 5e82d54 you have added the option
--end-of-options
to every command.In theory this should just work and also the documentation 2.35.1 and 2.25.1 mention this option.
But on both versions specifically the latest for ubuntu 20.04 and 2.35.1 as it's used on Ubuntu 20.04 in github actions always fail for me with the
--end-of-options
option enabled.The above is from my server running ubuntu 20.04 with latest version of git, the exact same behaviour happens in github actions for me.
Edit: fixed wrong link
The text was updated successfully, but these errors were encountered: