cloning.rb revision e6c44954655c89ba1d2a653055377e63b7f5a98d
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.
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