lib/origen/revision_control/git.rb in origen-0.4.1 vs lib/origen/revision_control/git.rb in origen-0.4.2
- old
+ new
@@ -106,10 +106,14 @@
if options[:time]
cmd += " --date=\"#{options[:time].strftime('%a %b %e %H:%M:%S %Y %z')}\""
end
git cmd, options
end
- git "push origin #{current_branch}" unless options[:no_push]
+ unless options[:no_push]
+ cmd = "push origin #{current_branch}"
+ cmd += ' -u' if options[:initial]
+ git cmd
+ end
paths
end
# Returns true if the current user can checkin to the given repo (means has permission
# to push in Git terms)