Skip to content

Commit

Permalink
TEMP and more logging
Browse files Browse the repository at this point in the history
trying to see what is happening that the changes to a directory are not being
seen by the gitdocs process during the Travis execution. But the assertions in
the test do see that the directory has changed.
  • Loading branch information
acant committed Sep 21, 2015
1 parent c7e44a2 commit 6aca9ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/gitdocs/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ def sync_changes
return unless @repository.valid?

# Commit #################################################################
@repository.commit if @share.sync_type == 'full'
commit_result = @repository.commit if @share.sync_type == 'full'
Gitdocs.logger.info("commit_result: #{commit_result}")

# Fetch ##################################################################
fetch_result = @repository.fetch
Gitdocs.logger.info("fetch_result: #{fetch_result}")
return unless fetch_result == :ok
return if @share.sync_type == 'fetch'

Expand Down

0 comments on commit 6aca9ce

Please sign in to comment.