Commit 42033b2c authored by Richard He's avatar Richard He Committed by LUCI CQ

Fix gclient-new-workdir when source repo is shallow clone

When source repo is a 'shallow clone', `.git/shallow` is not linked to
the new workdir. Which makes running git command fails in new workdir.

Change-Id: I81d38b7b2cccc482711dcc1dd02ea06fbd01a56d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2211635Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: Richard He <linyhe@microsoft.com>
parent 74f67e29
......@@ -1083,6 +1083,7 @@ def make_workdir(repository, new_workdir):
'refs',
'remotes',
'rr-cache',
'shallow',
]
make_workdir_common(repository, new_workdir, GIT_DIRECTORY_WHITELIST,
['HEAD'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment