···11+diff --git a/aab/builder.py b/aab/builder.py
22+index 5c3805c..a181b27 100644
33+--- a/aab/builder.py
44++++ b/aab/builder.py
55+@@ -67,8 +67,7 @@ class AddonBuilder:
66+ self._version = Git().parse_version(version)
77+ # git stash create comes up empty when no changes were made since the
88+ # last commit. Don't use 'dev' as version in these cases.
99+- git_status = call_shell("git status --porcelain")
1010+- if self._version == "dev" and git_status == "":
1111++ if self._version == "dev" and call_shell("git status --porcelain") == "":
1212+ self._version = Git().parse_version("current")
1313+ if not self._version:
1414+ logging.error("Error: Version could not be determined through Git")