We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af22dc commit 6699a6dCopy full SHA for 6699a6d
lib/ohloh_scm/adapters/git/push.rb
@@ -10,7 +10,9 @@ def push(to)
10
11
if to.exist?
12
ENV['GIT_COMMITTER_NAME'] = COMMITTER_NAME
13
+ run "cd '#{to.url}' && git checkout -b tmp"
14
run "cd '#{self.url}' && git push '#{to.url}' #{self.branch_name}:#{to.branch_name}"
15
+ run "cd '#{to.url}' && git checkout master && git branch -d tmp"
16
else
17
if to.local?
18
# Create a new repo on the same local machine. Just use existing pull code in reverse.
0 commit comments