Skip to content

Commit

Permalink
Merge pull request #580 from launchableinc/rollback-1.67.1
Browse files Browse the repository at this point in the history
Reverted all the changes from v1.67.0 -> v1.67.1 for emergency fix
  • Loading branch information
kohsuke authored Jul 13, 2023
2 parents 7faff49 + bd8634d commit 6b1b4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ jobs:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v2
with:
repository: launchableinc/examples
path: examples
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
Expand Down
18 changes: 2 additions & 16 deletions launchable/commands/record/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,16 @@ def commit(ctx, source: str, executable: bool, max_days: int, scrub_pii: bool, i
_import_git_log(import_git_log_output, ctx.obj.dry_run)
return

cwd = os.path.abspath(source)
try:
is_shallow = subprocess.check_output(
['git', 'rev-parse', '--is-shallow-repository'],
stderr=subprocess.DEVNULL,
cwd=cwd,
universal_newlines=True).strip()
if is_shallow == "true":
click.echo(click.style(
"Can't collect commit history from {} since it is the shallow repository. "
"Please use full clone or disable commit collection by --no-commit-collection option."
.format(cwd),
fg='red'),
err=True)
sys.exit(1)
exec_jar(cwd, max_days, ctx.obj.dry_run)
exec_jar(os.path.abspath(source), max_days, ctx.obj.dry_run)
except Exception as e:
if os.getenv(REPORT_ERROR_KEY):
raise e
else:
click.echo(click.style(
"Can't get commit history from `{}`. Do you run command root of git-controlled directory? "
"If not, please set a directory use by --source option."
.format(cwd),
.format(os.path.abspath(source)),
fg='yellow'),
err=True)
print(e)
Expand Down

0 comments on commit 6b1b4bd

Please sign in to comment.