Bundlebuilder: submodules can have "/.git" as a file
When created via "git submodules add", a submodules may have the "/.git" path be a file rather than a directory. The bundlebuilder previously thought that all submodules had "/.git" as a directory.
This commit is contained in:
parent
7722015bf9
commit
c288d54ab8
@ -205,7 +205,7 @@ class Packager(object):
|
|||||||
if not ignore:
|
if not ignore:
|
||||||
sub_path = os.path.join(root, line)
|
sub_path = os.path.join(root, line)
|
||||||
if os.path.isdir(sub_path) \
|
if os.path.isdir(sub_path) \
|
||||||
and os.path.isdir(os.path.join(sub_path, '.git')):
|
and os.path.exists(os.path.join(sub_path, '.git')):
|
||||||
sub_list = self.get_files_in_git(sub_path)
|
sub_list = self.get_files_in_git(sub_path)
|
||||||
for f in sub_list:
|
for f in sub_list:
|
||||||
files.append(os.path.join(line, f))
|
files.append(os.path.join(line, f))
|
||||||
|
Loading…
Reference in New Issue
Block a user