|
|
@@ -1,6 +1,5 @@ |
|
|
|
import codearchiver.core |
|
|
|
import codearchiver.subprocess |
|
|
|
import datetime |
|
|
|
import functools |
|
|
|
import hashlib |
|
|
|
import logging |
|
|
@@ -39,9 +38,6 @@ class Git(codearchiver.core.Module): |
|
|
|
if os.path.exists(directory): |
|
|
|
_logger.fatal(f'{directory!r} already exists') |
|
|
|
raise FileExistsError(f'{directory!r} already exists') |
|
|
|
startTime = datetime.datetime.utcnow() |
|
|
|
if self._id is None: |
|
|
|
self._id = f'git_{self._url.replace("/", "_")}_{startTime:%Y%m%dT%H%M%SZ}' |
|
|
|
bundle = f'{self._id}.bundle' |
|
|
|
if os.path.exists(bundle): |
|
|
|
_logger.fatal(f'{bundle!r} already exists') |
|
|
|