Change logic for checking if dir is a git dir.
This commit is contained in:
parent
d5062e63e9
commit
9fac2103c5
1 changed files with 2 additions and 2 deletions
4
atmos.py
4
atmos.py
|
|
@ -48,8 +48,8 @@ def determine_actions(args, params):
|
|||
with subprocess.Popen(shlex.split(cmd)) as proc:
|
||||
exit # Start process but kill py program
|
||||
|
||||
def is_git_directory(path = '.'):
|
||||
return subprocess.call(['git', '-C', path, 'status'], stderr=subprocess.STDOUT, stdout = open(os.devnull, 'w')) == 0
|
||||
def is_git_directory():
|
||||
return subprocess.call(['git', 'branch'], stderr=subprocess.STDOUT, stdout = open(os.devnull, 'w')) == 0
|
||||
|
||||
def workspace_manager():
|
||||
branch = subprocess.getoutput("git rev-parse --abbrev-ref HEAD")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue