-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Windows version 2.36.0 breaks hooks when pushing to a bare repository located on a DFS #3825
Comments
This looks like #3669 (comment). @Balkoth could you start a Git Bash and try to call |
Same problem:
I don't know how to setup cygwin bash:
|
Still necessary to open a dedicated issue, or will this be renamed? Want to avoid to open a duplicate.
Setup
Nothing Details
This happens with the Bash. Either running on its own or via the Windows terminal.
Changing the working directory to a network drive doesn't work anymore like with previous git-for-windows versions (latest working version: 2.35.3) and fails with
A succesfull change of the working directory
It fails with the above mentioned error message. But in general it seems to be possible, as a Bash can be opened on a network drive with
Switching to different local drives still works:
As I was asked to report what happens with cygwin: I simply installed the base setup. Assuming the checked behaviour should be set as default, this happens when I try to switch to a network drive:
But as it also fails with the local drive |
@Balkoth in Cygwin, you need to |
|
Okay, that confirms that this is a Cygwin problem. Could you download https://github.com/git-for-windows/msys2-runtime/suites/5723433653/artifacts/189221093 and replace your existing |
I can confirm that changing into the drive as well as calling the hooks works with the dll you provided. |
Hooray! I guess we'll need to build a new MSYS2 runtime soon ;-) |
Seeing as Git for Windows tries to stay close to the upstream MSYS2 project, it makes sense to integrate their patches verbatim. Here, we rebase to the current work-in-progress because the Cygwin runtime v3.3.5 has not yet been released, yet Git for Windows needs some fixes that were not yet in v3.3.4, most notably the "Too many levels of symbolic links" problem with network shares. This fixes git-for-windows/git#3825 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A bug introduced into v2.36.0 where [shell scripts failed to run on some network shares with the error "Too many levels of symbolic links"](git-for-windows/git#3825) was fixed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Seeing as Git for Windows tries to stay close to the upstream MSYS2 project, it makes sense to integrate their patches verbatim. This fixes git-for-windows/git#3825 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Setup
defaults?
to the issue you're seeing?
Bare repositories with hooks are located on a Windows DFS.
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
As with version 2.35.3 i expect the hooks in the bare repository to run.
As shown here, the hook 'post-receive' did not run, while downgrading to 2.35.3 executes the hook successfully. I don't know which information is needed in order to solve the issue, but will be looking to provide any of them if asked.
The text was updated successfully, but these errors were encountered: