Skip to content

Commit 4e04bf1

Browse files
committed
Add comment about --shared
1 parent faf29ea commit 4e04bf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/git-fastclone.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def clone(url, rev, src_dir, config)
253253

254254
clone_commands = ['git', 'clone', verbose ? '--verbose' : '--quiet']
255255
# For sparse checkouts, clone directly from the local mirror and skip the actual checkout process
256+
# --shared is included so that the checkout remains fast even if the reference and destination directories
257+
# live on different filesystem volumes.
256258
# For normal clones, use --reference and clone from the remote URL
257259
if sparse_paths
258260
clone_commands.push('--no-checkout', '--shared')

0 commit comments

Comments
 (0)