             getCommits('server').should.eventually.have.property("length").equal(2)
             getCommits('client').should.eventually.have.property("length").equal(2)
             utils.readFile("./#{tmpWorkspace}/server/README.md").should.eventually.equal(newReadme)
+            isClean('server').should.eventually.equal(false)
           ])
 
     it "remote repo should be clean after the user makes a commit"

            getCommits('server').should.eventually.have.property("length").equal(2)
            utils.readFile("./#{tmpWorkspace}/server/README.md").should.eventually.equal(readmeContents)
            getCommits('client').should.eventually.have.property("length").equal(2)
          ])

    it "should sync a save that is not committed", ->

  .then ->
    utils.cmd "#{tmpWorkspace}/#{repo}", "git commit -m \"#{msg}\""
  
isClean = (repo)->
  nodegit.Repository.open("#{tmpWorkspace}/#{repo}").then (repo) ->
    repo.getStatus().then (statuses)->
      Promise.resolve statuses.length == 0

getCommits = (repo)->
  commits = []
  nodegit.Repository.open("#{tmpWorkspace}/#{repo}")
