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.
master
Sam Parkinson 8 years ago
parent 7722015bf9
commit c288d54ab8
No known key found for this signature in database
GPG Key ID: 34E268B2FA2F8B13

@ -205,7 +205,7 @@ class Packager(object):
if not ignore:
sub_path = os.path.join(root, line)
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)
for f in sub_list:
files.append(os.path.join(line, f))

Loading…
Cancel
Save