mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-18 11:31:46 +04:00
mounting the superproject directory
This commit is contained in:
parent
69709798c6
commit
b30df02920
2 changed files with 8 additions and 5 deletions
|
|
@ -40,10 +40,12 @@ def get_root():
|
|||
|
||||
|
||||
def get_superproject_root():
|
||||
stdout = cmd_output('git',
|
||||
'rev-parse',
|
||||
'--show-superproject-working-tree',
|
||||
'--show-toplevel')
|
||||
stdout = cmd_output(
|
||||
'git',
|
||||
'rev-parse',
|
||||
'--show-superproject-working-tree',
|
||||
'--show-toplevel',
|
||||
)
|
||||
return stdout[1].splitlines()[0].strip()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue