Skip to content
Snippets Groups Projects
Verified Commit 89a5a7fd authored by ma1's avatar ma1
Browse files

fixup! Bug 41803: Add some developer tools for working on tor-browser.

Bug 42516: Make tb-dev worktree-compatible
parent 19a92f8c
Branches
No related tags found
1 merge request!982Bug 42516: Make tb-dev worktree-compatible
......@@ -57,10 +57,12 @@ def get_local_root():
global local_root
if local_root is None:
try:
# Make sure we have a matching remote in this git repository. Should raise Exception if we don't.
get_upstream_name()
git_root = git_get(["rev-parse", "--show-toplevel"])[0]
except subprocess.CalledProcessError:
except Exception:
git_root = None
if git_root is None or os.path.basename(git_root) != "tor-browser":
if git_root is None:
local_root = ""
else:
local_root = git_root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment