diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-30 17:02:44 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-30 17:02:44 +0100 |
commit | 4772186b19fe4bdf412bb3364b9358d5f59eff55 (patch) | |
tree | 5cb2b6518d5c5f2a37c9f42821023f800c5ef1a6 /include | |
parent | c62dbdbe82abfbca4dfb2802a4e154e74b7a5a4f (diff) |
git.sh: short git_prep command in fetch_targets()
loc is already set, and will correspond to the same
path, so we can quite conveniently use it.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/git.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh index 4cd70f29..6dbc2a85 100755 --- a/include/git.sh +++ b/include/git.sh @@ -11,9 +11,10 @@ fetch_targets() x_ ./update trees -f "$project" "$tree_depend" e "src/$project/$tree" d && return 0 + printf "Creating %s tree %s\n" "$project" "$tree" - git_prep "src/$project/$project" "src/$project/$project" \ - "$PWD/$cfgsdir/$tree/patches" "src/$project/$tree" "update" + git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \ + "${loc%/*}/$tree" u nuke "$project/$tree" "$project/$tree" } |