lib/dev_flow/commands/progress.rb in dev_flow-0.2.4 vs lib/dev_flow/commands/progress.rb in dev_flow-0.3.0
- old
+ new
@@ -20,12 +20,14 @@
message = ARGV[2] || "update progress to #{progress}"
message = "[progress] " + message
info "commit your progress"
`git commit -am '#{message}'`
- if @config["git_remote"]
+ if sync?
info "push your progress to remote server"
`git push #{@config["git_remote"]} #{current_task.branch_name}`
+ else
+ warn "your change did not pushed to the remote server."
end
# rewrite progress in ROADMAP file under develop trunk
upload_progress! current_task, progress
end