We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7587c9 + c392e87 commit 9c16470Copy full SHA for 9c16470
assets/check
@@ -58,16 +58,20 @@ export GIT_LFS_SKIP_SMUDGE=1
58
59
if [ -d $destination ]; then
60
cd $destination
61
- git fetch $tagflag -f
62
- git reset --hard FETCH_HEAD
+ git fetch origin $tagflag $branch -f
+ git reset --soft FETCH_HEAD
63
else
64
branchflag=""
65
if [ -n "$branch" ]; then
66
branchflag="--branch $branch"
67
fi
68
69
- git clone --single-branch $uri $branchflag $destination $tagflag
+ git clone --bare --filter=blob:none --single-branch $uri $branchflag $destination $tagflag
70
71
+ # bare clones don't configure the refspec
72
+ if [ -n "$branch" ]; then
73
+ git remote set-branches --add origin $branch
74
+ fi
75
76
77
if [ -n "$ref" ] && git cat-file -e "$ref"; then
0 commit comments