Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88a5a1e

Browse files
authored
Merge pull request #317 from SHAQ522/SHAQ522-fix-permission-deny-backup
fix(commit): attach user info to backup for permission denied issue
2 parents c51a521 + aa2959d commit 88a5a1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎commitizen/commands/commit.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def __init__(self, config: BaseConfig, arguments: dict):
2828
self.config: BaseConfig = config
2929
self.cz = factory.commiter_factory(self.config)
3030
self.arguments = arguments
31-
self.temp_file: str = os.path.join(tempfile.gettempdir(), "cz.commit.backup")
31+
self.temp_file: str = os.path.join(
32+
tempfile.gettempdir(),
33+
"cz.commit{user}.backup".format(user=os.environ.get("USER", "")),
34+
)
3235

3336
def read_backup_message(self) -> str:
3437
# Check the commit backup file exists

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /