aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2024-04-24 16:27:42 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2024-04-24 16:27:42 -0400
commit47f2a7a303b45ca9726363a84d1e4d6286160dc6 (patch)
treeed3ef26eeb7e74b91b7e99cc66d952c376624c5f
parent890fdc05400e43eddceefb96ba476e77b7a0f814 (diff)
downloadb4-47f2a7a303b45ca9726363a84d1e4d6286160dc6.tar.gz
Fix version to include partial hash for -dev versions
This broke when we reorganized the tree, so fix it to work again. Fixes: 3cfb91a071cd ("Switch from setup.py to pyproject.toml") Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--src/b4/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b4/command.py b/src/b4/command.py
index 3073888..8dda9d2 100644
--- a/src/b4/command.py
+++ b/src/b4/command.py
@@ -417,7 +417,7 @@ if __name__ == '__main__':
# noinspection PyBroadException
try:
if b4.__VERSION__.find('-dev') > 0:
- base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
+ base = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
dotgit = os.path.join(base, '.git')
ecode, short = b4.git_run_command(dotgit, ['rev-parse', '--short', 'HEAD'])
if ecode == 0: