Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sharelatex-git
9 changes: 6 additions & 3 deletions sharelatex-git.py → sharelatex_git.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def write_if_not_there(s):
if s not in lines:
f.write(s + '\n')

write_if_not_there('sharelatex-git.py')
write_if_not_there('sharelatex_git.py')
write_if_not_there('sharelatex-git')
write_if_not_there('.sharelatex-git')
except:
Expand Down Expand Up @@ -196,7 +196,9 @@ def commit_all_changes(message, title):
#------------------------------------------------------------------------------
def files_changed():
out = run_cmd('git status .').decode('utf-8')
return 'nothing to commit, working directory clean' not in out.lower()
return ('nothing to commit, working directory clean' not in out.lower()
and
'nothing to commit, working tree clean' not in out.lower())

#------------------------------------------------------------------------------
# Download the sharelatex project and extract it. Die out if there's any
Expand Down Expand Up @@ -435,4 +437,5 @@ def parse_input():
#------------------------------------------------------------------------------
# Go, go, go!
#------------------------------------------------------------------------------
go(*parse_input())
if __name__ == '__main__':
go(*parse_input())