diff --git a/commitizen/commands/commit.py b/commitizen/commands/commit.py index 09fb2cbbef..4c6f7aa03c 100644 --- a/commitizen/commands/commit.py +++ b/commitizen/commands/commit.py @@ -28,7 +28,10 @@ def __init__(self, config: BaseConfig, arguments: dict): self.config: BaseConfig = config self.cz = factory.commiter_factory(self.config) self.arguments = arguments - self.temp_file: str = os.path.join(tempfile.gettempdir(), "cz.commit.backup") + self.temp_file: str = os.path.join( + tempfile.gettempdir(), + "cz.commit{user}.backup".format(user=os.environ.get("USER", "")), + ) def read_backup_message(self) -> str: # Check the commit backup file exists