mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1339240 - Detect git worktrees in MachCommandConditions.is_git. r=chmanchester
--HG-- extra : rebase_source : 1763953383ead9f9985fdadc0e862ace23cb2b21
This commit is contained in:
parent
81a2b977dd
commit
3a2a54e7d2
@ -785,7 +785,7 @@ class MachCommandConditions(object):
|
||||
"""Must have a git source checkout."""
|
||||
if hasattr(cls, 'substs'):
|
||||
top_srcdir = cls.substs.get('top_srcdir')
|
||||
return top_srcdir and os.path.isdir(os.path.join(top_srcdir, '.git'))
|
||||
return top_srcdir and os.path.exists(os.path.join(top_srcdir, '.git'))
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user