Skip to content

Commit

Permalink
Update commit.py
Browse files Browse the repository at this point in the history
fix resolving variables in commit msg
  • Loading branch information
marwin1991 authored Dec 18, 2023
1 parent 89dbf47 commit 130ddf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion valhalla/commit/commit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from git import Repo

from valhalla.common.logger import info, warn
from valhalla.common.resolver import resolve


class GitRepository:
Expand Down Expand Up @@ -57,7 +58,7 @@ def commit(self, msg: str, add=True) -> bool:
return False

msg += "[VALHALLA SKIP]"
commit = self.repository.index.commit(msg)
commit = self.repository.index.commit(resolve(msg))
info(f"Created commit: {commit}")
self.status()
return True
Expand Down

0 comments on commit 130ddf2

Please sign in to comment.