mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Add 'shallow' gitfile to symlinks
This fixes the bug that kept clients from doing things like `git log` in projects using the clone-depth feature. Change-Id: Ib4024a7b82ceaa7eb7b8935b007b3e8225e0aea8
This commit is contained in:
parent
544e7b0a97
commit
f2af756425
@ -2186,7 +2186,7 @@ class Project(object):
|
|||||||
symlink_dirs = ['hooks', 'objects', 'rr-cache', 'svn']
|
symlink_dirs = ['hooks', 'objects', 'rr-cache', 'svn']
|
||||||
if share_refs:
|
if share_refs:
|
||||||
# These objects can only be used by a single working tree.
|
# These objects can only be used by a single working tree.
|
||||||
symlink_files += ['config', 'packed-refs']
|
symlink_files += ['config', 'packed-refs', 'shallow']
|
||||||
symlink_dirs += ['logs', 'refs']
|
symlink_dirs += ['logs', 'refs']
|
||||||
to_symlink = symlink_files + symlink_dirs
|
to_symlink = symlink_files + symlink_dirs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user