Skip to content

Commit 9992afa

Browse files
authored
Merge pull request #1027 from launchableinc/git-rev-parse
Improvement around git-rev-parse
2 parents d1c0784 + e0b3dce commit 9992afa

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

launchable/commands/record/commit.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,6 @@ def commit(ctx, source: str, executable: bool, max_days: int, scrub_pii: bool, i
7575
client.print_exception_and_recover(e)
7676

7777
cwd = os.path.abspath(source)
78-
try:
79-
is_shallow = subprocess.check_output(
80-
['git', 'rev-parse', '--is-shallow-repository'],
81-
stderr=subprocess.DEVNULL,
82-
cwd=cwd,
83-
universal_newlines=True).strip()
84-
if is_shallow == "true":
85-
tracking_client.send_event(
86-
event_name=Tracking.Event.SHALLOW_CLONE
87-
)
88-
except Exception as e:
89-
if os.getenv(REPORT_ERROR_KEY):
90-
raise e
91-
else:
92-
print(e)
9378
try:
9479
exec_jar(cwd, max_days, ctx.obj, is_collect_message)
9580
except Exception as e:

0 commit comments

Comments
 (0)