소스 검색

Add submodule check

#13
tags/v1.0
JustAnotherArchivist 1 년 전
부모
커밋
7861036624
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      codearchiver/modules/git.py

+ 5
- 0
codearchiver/modules/git.py 파일 보기

@@ -154,6 +154,11 @@ class Git(codearchiver.core.Module):
os.remove('tmp.pack')
os.remove('tmp.idx')

_logger.info('Checking for submodules')
_, commitsWithSubmodules, _ = codearchiver.subprocess.run_with_log(['git', 'log', '--format=format:%H', '--diff-filter=d', '--all', '--', '.gitmodules'], cwd = directory)
if commitsWithSubmodules:
_logger.warning('Submodules found but extraction not supported')

_logger.info(f'Removing clone')
shutil.rmtree(directory)



불러오는 중...
취소
저장