mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
docs: fix version specific note on local build
This commit is contained in:
@@ -207,7 +207,7 @@ def get_version():
|
|||||||
return (branch, "branch", False)
|
return (branch, "branch", False)
|
||||||
|
|
||||||
# Try to find the branch name even if docs are built locally
|
# Try to find the branch name even if docs are built locally
|
||||||
branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).decode('utf-8')
|
branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).strip().decode('utf-8')
|
||||||
if branch != "HEAD":
|
if branch != "HEAD":
|
||||||
return (branch, "branch", False)
|
return (branch, "branch", False)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user