Skip to content

Commit 837846a

Browse files
committed
Tweaks
1 parent 4e821d5 commit 837846a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/post_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def get_context() -> dict:
9090
# Store the fully qualified template path for local templates
9191
template_location = str(template_path)
9292
except (git.exc.InvalidGitRepositoryError, git.exc.NoSuchPathError):
93-
# Not a git repository, fall back to empty values
93+
# Not a git repository, fall back to unknown values
9494
branch = "unknown"
9595
dirty = False
96-
template_commit_hash = ""
96+
template_commit_hash = "unknown"
9797
template_location = str(template_path)
9898

9999
context: dict[str, str | dict[str, str | bool | dict[str, str | bool | dict[str, str]]]] = {}

0 commit comments

Comments
 (0)