diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-04-24 16:27:42 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-04-24 16:27:42 -0400 |
commit | 47f2a7a303b45ca9726363a84d1e4d6286160dc6 (patch) | |
tree | ed3ef26eeb7e74b91b7e99cc66d952c376624c5f | |
parent | 890fdc05400e43eddceefb96ba476e77b7a0f814 (diff) | |
download | b4-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.py | 2 |
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: |