-
-
Notifications
You must be signed in to change notification settings - Fork 7
Comparing changes
Open a pull request
base repository: pre-commit-ci/lite-action
base: v1.0.2
head repository: pre-commit-ci/lite-action
compare: v1.1.0
- 10 commits
- 5 files changed
- 2 contributors
Commits on Sep 11, 2024
-
Update index before diff-index to check if there are changes
It is possible to get to a state where diff-index shows that there is a diff, but there is nothing to commit. For example, when overwriting a file with its current context. Experiment: ``` $ echo hello > foo.txt $ git add foo.txt $ git diff-index --no-ext-diff HEAD -- :000000 100644 0000000000000000000000000000000000000000 ce013625030ba8dba906f756967f9e9ca394464a A foo.txt $ git commit -m "Add foo.txt" [experiment b237cf0] Add foo.txt 1 file changed, 1 insertion(+) create mode 100644 foo.txt $ git diff-index --no-ext-diff HEAD -- $ echo hello > foo.txt $ git diff-index --no-ext-diff HEAD -- :100644 100644 ce013625030ba8dba906f756967f9e9ca394464a 0000000000000000000000000000000000000000 M foo.txt $ git commit -a On branch experiment nothing to commit, working tree clean $ ``` This scenario led to a confusing error: ``` Traceback (most recent call last): File "/home/runner/work/_actions/pre-commit-ci/lite-action/v1.0.2/bin/main", line 298, in <module> raise SystemExit(main()) ^^^^^^ File "/home/runner/work/_actions/pre-commit-ci/lite-action/v1.0.2/bin/main", line 270, in main commit = _make_commit(src_repo=args.src_repo, head=head, clone=clone) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/_actions/pre-commit-ci/lite-action/v1.0.2/bin/main", line 57, in _make_commit subprocess.check_call( File "/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '('git', '-c', 'user.name=does-not-matter', '-c', '[email protected]', '-c', 'protocol.version=2', '-C', '.', 'commit', '--all', '--quiet', '--no-edit', '--no-verify', '--message=hi')' returned non-zero exit status 1. ``` This change refreshes the index before diff-ing it, avoiding the error.
Configuration menu - View commit details
-
Copy full SHA for 38ab68a - Browse repository at this point
Copy the full SHA 38ab68aView commit details
Commits on Sep 12, 2024
-
Merge pull request #17 from adamtheturtle/update-has-changes
Update index before diff-index to check if there are changes
Configuration menu - View commit details
-
Copy full SHA for 87b886c - Browse repository at this point
Copy the full SHA 87b886cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a285f6 - Browse repository at this point
Copy the full SHA 0a285f6View commit details -
Merge pull request #18 from pre-commit-ci/autoupdate
pre-commit autoupdate
Configuration menu - View commit details
-
Copy full SHA for 4d79555 - Browse repository at this point
Copy the full SHA 4d79555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1384014 - Browse repository at this point
Copy the full SHA 1384014View commit details
Commits on Oct 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6f4b769 - Browse repository at this point
Copy the full SHA 6f4b769View commit details -
Merge pull request #19 from pre-commit-ci/all-repos_autofix_all-repos…
…-manual py39+
Configuration menu - View commit details
-
Copy full SHA for ea952db - Browse repository at this point
Copy the full SHA ea952dbView commit details
Commits on Oct 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3282fa3 - Browse repository at this point
Copy the full SHA 3282fa3View commit details -
Merge pull request #20 from pre-commit-ci/upload-artifact-v4
use upload-artifact v4
Configuration menu - View commit details
-
Copy full SHA for 3bad1be - Browse repository at this point
Copy the full SHA 3bad1beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d6cc0e - Browse repository at this point
Copy the full SHA 5d6cc0eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.0.2...v1.1.0