cloning.rb revision df191fbdb340d5ef9de39a762aca83c88375cc72
require 'subprocess'
# Struct for old and new OID
set_section %w( remote origin ),
fetch: '+refs/*:refs/*',
mirror: 'true'
end
# Do we have a standard layout?
else
end
end
end
end
# Fetches the latest commits and resets the local master
if svn_has_trunk?
else
end
end
end
# Sets the reference of a local branch
end
end
# GIT_ASKPASS is set to the 'true' executable. It simply returns
# successfully. This way, no credentials are supplied.
rescue Subprocess::Error => e
if e.status == 128
false
else
raise e
end
end
end
true
false
end
end
end
# Executes a git command
args.unshift 'git'
LANG: 'C'
end
# Yields the given block and returns the head OID
# before and after yielding the block.
end
end
end