Skip to content

Commit b8ef283

Browse files
authored
Merge pull request #17 from justcoded/hostfix/fix-pre-commit
fix: Fixed git-code.check.dirty and git-code.fix.dirty error
2 parents aff227f + e328ad4 commit b8ef283

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
---
1010
<!--- END HEADER -->
1111

12+
## [1.7.3](https://github.com/justcoded/git-extras/compare/v1.7.2...v1.7.3) (2025-08-13)
13+
### Bug Fixes
14+
15+
* Fixed git-code.check.dirty and git-code.fix.dirty `cd to null directory` error
16+
17+
18+
---
19+
1220
## [1.7.2](https://github.com/justcoded/git-extras/compare/v1.7.1...v1.7.2) (2025-05-16)
1321
### Bug Fixes
1422

bin/git-code.check.dirty

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ function handle() {
2727
echo "Current git root: $currGitRoot"
2828
fi
2929

30-
cd "$currGitDir"
31-
3230
while [ ! -d "$rootDir/.git" ]; do
3331
cd ..
3432
rootDir=$(pwd)

bin/git-code.fix.dirty

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ function handle() {
3131
echo "Current git root: $currGitRoot"
3232
fi
3333

34-
cd "$currGitDir"
35-
3634
while [ ! -d "$rootDir/.git" ]; do
3735
cd ..
3836
rootDir=$(pwd)

0 commit comments

Comments
 (0)