Skip to content

Commit

Permalink
Hopefully make Travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau committed Apr 26, 2016
1 parent 123c1c3 commit 735ad14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yokadi/sync/gitvcsimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def isWorkTreeClean(self):
def commitAll(self, message=None):
if message is None:
message = "Synced"
self._run("add", ".")
# Use --all to keep Travis git (1.8.5.6) happy
self._run("add", "--all", ".")
self._run("commit", "-m", message)

def clone(self, remoteUrl):
Expand Down Expand Up @@ -129,11 +130,11 @@ def getConflicts(self):
def closeConflict(self, path, content):
fullPath = os.path.join(self._srcDir, path)
if content is None:
os.remove(fullPath)
self._run("rm", "-f", path)
else:
with open(fullPath, "wb") as fp:
fp.write(content)
self._run("add", path)
self._run("add", path)

def abortMerge(self):
self._run("merge", "--abort")
Expand Down

0 comments on commit 735ad14

Please sign in to comment.