-
Notifications
You must be signed in to change notification settings - Fork 61
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
2 t1205-push-subdir.sh test failures #367
Comments
Test run with actually verbose output:
|
I am unable to reproduce the problem with either the v2.3.2 tag or HEAD using the statically linked The failing test case ("6 - Push removes current subdir") is a little weird in that it This test case is likely sensitive to both the version of Any more detail you can provide about the environment where this test failed would be appreciated. |
Our package build system builds everything on tmpfs. But I just tried to run the tests on ext4 and failures are the same. Git version:
I tried to reproduce in Docker:
|
I was able to reproduce the behavior using the container method. The problem does have to do with the version of git. This test works with git v2.35.0 and newer. The relevant release note from v2.35.0:
I suspect it would be possible to add a safety rail to StGit to account for this case where a push eliminates the current directory. But I'm not seeing this as a critical issue since it is resolved by using a somewhat more recent version of git. That said, it looks like the context here is that you're working on packaging StGit for ALT Linux. I want to support downstream packagers of StGit, so let me know how I can best do that in this case. |
Maybe you can skip the test if git is not enough version? Since I make package for ALT Linux -version of git isn't my choice, but I wish to run some tests. If I just |
I have dug deeper into the exact failure path through StGit. The problem stems from the This problem can be mitigated by changing the original search for the repository from using "." to using the absolute current dir. With this change, The next issue I see is that |
For the time being I will just For example you could make it like shell tests in They have (common for many tests harnesses) exit code |
2 test failures on 2.3.2:
The text was updated successfully, but these errors were encountered: