Skip to content

Commit

Permalink
fix: apps cloner
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Feb 26, 2024
1 parent 46fe1c7 commit 90ae850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,12 @@ in {
text = let
clone = app: ''
if [[ ! -d "$PRJ_ROOT/apps/${app.pname}" ]]; then
git clone --branch {app.src.src.rev} --origin upstream --branch custom --depth 1 ${app.src.src.gitRepoUrl} "$PRJ_ROOT/apps/${app.pname}"
git clone --config "diff.fsjd.command=fsjd --git" --single-branch --branch "${app.src.src.rev}" \
--origin upstream --depth 1 "${app.src.src.gitRepoUrl}" \
"$PRJ_ROOT/apps/${app.pname}"
(
cd "$PRJ_ROOT/apps/${app.pname}";
git switch -c custom
diff -uraN ${app.src} "$PRJ_ROOT/apps/${app.pname}" | patch
find . -type f -iname "*.orig" -delete
git add .
Expand Down

0 comments on commit 90ae850

Please sign in to comment.