-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env: Fix a few places that add and remove git worktrees with systemd-…
…nspawn Signed-off-by: Nathan Chancellor <nathan@kernel.org>
- Loading branch information
1 parent
675bde7
commit 6b024f2
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env fish | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (C) 2024 Nathan Chancellor | ||
|
||
function fix_wrktrs_for_nspawn -d 'Fix worktree paths in gitdir files created within systemd-nspawn' | ||
PYTHONPATH=$PYTHON_FOLDER python3 -c 'import lib.utils, sys | ||
from pathlib import Path | ||
for arg in sys.argv[1:]: | ||
lib.utils.'(status function)'(Path(arg))' $argv | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters