Permalink
Browse files

Fix pushing to cached remotes

  • Loading branch information...
1 parent 2cb07bb commit e22638a8a1e3758d52d353ccb0b8eb9fa847aac7 @norbert norbert committed Jan 29, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/braid/commands/push.rb
@@ -25,10 +25,11 @@ def run(path, options = {})
Dir.mkdir(clone_dir)
source_dir = Dir.pwd
remote_url = git.remote_url(mirror.remote)
- if File.directory?(remote_url)
+ if remote_url == mirror.cached_url
+ remote_url = mirror.url
+ elsif File.directory?(remote_url)
remote_url = File.expand_path(remote_url)
end
- STDOUT.puts remote_url
Dir.chdir(clone_dir) do
msg "Cloning mirror with local changes."
git.init

0 comments on commit e22638a

Please sign in to comment.