Skip to content

Commit

Permalink
Avoid checking out git repos twice during prep
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdebsk committed Aug 18, 2023
1 parent 3f35b7c commit 059bf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion downstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function prep()
{
rm -rf "downstream/$p"
if [[ "$type" = git ]]; then
$git clone "upstream/$p.git" "downstream/$p"
$git clone -n "upstream/$p.git" "downstream/$p"
$git -C "downstream/$p" checkout -b upstream-base "$ref"
elif [[ "$type" = zip ]]; then
$git init "downstream/$p"
Expand Down

0 comments on commit 059bf38

Please sign in to comment.