Commit 5e4e467
Fix annoying warnings when running in a container
This is a follow-up to 07f28a4 which added support for figuring out the
GIT revision when 9pm is a submodule in another proejct.
However, that project in turn may be a git worktree, where the actual
.git directory is elsewhere, and when said project is running its tests
from a Docker container, things get worse. It is very likely that the
actual .git directory is unreachable from within the container.
This patch hides the following annoying warnings:
warning, git command failed (Command '['git', '--git-dir', '/home/jocke/src/x-misc/test/9pm/../../../infix/.git/worktrees/x-misc/modules/9pm', 'rev-parse', 'HEAD']' returned non-zero exit status 128.)
9PM - Simplicity is the ultimate sophistication
warning, git command failed (Command '['git', '--git-dir', '/home/jocke/src/infix/.git/worktrees/x-misc', 'rev-parse', 'HEAD']' returned non-zero exit status 128.)
Testing Infix
Running suite 0001 all.yaml
Signed-off-by: Joachim Wiberg <[email protected]>1 parent 5530cb4 commit 5e4e467
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
707 | | - | |
708 | | - | |
709 | | - | |
| 709 | + | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | | - | |
| 715 | + | |
715 | 716 | | |
716 | | - | |
| 717 | + | |
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
| |||
0 commit comments