@@ -267,10 +267,10 @@ def build_gem_locally_from(source, branch)
267267 sh . echo "Building dpl gem locally with source #{ source } and branch #{ branch } " , ansi : :yellow
268268 cmd ( "gem uninstall -aIx dpl >& /dev/null" , echo : false , assert : !allow_failure , timing : false )
269269 sh . cmd ( "pushd /tmp >& /dev/null" , echo : false , assert : !allow_failure , timing : true )
270- sh . cmd ( "git clone https://github.com/ #{ source } #{ source } " , echo : true , assert : !allow_failure , timing : true )
270+ sh . cmd ( :: Travis :: Vcs :: Git :: clone_cmd ( ' https://github.com' , source ) , echo : true , assert : !allow_failure , timing : true )
271271 sh . cmd ( "pushd #{ source } >& /dev/null" , echo : false , assert : !allow_failure , timing : true )
272- sh . cmd ( "git checkout #{ branch } " , echo : true , assert : !allow_failure , timing : true )
273- sh . cmd ( "git rev-parse HEAD" , echo : true , assert : !allow_failure , timing : true )
272+ sh . cmd ( :: Travis :: Vcs :: Git :: checkout_cmd ( branch ) , echo : true , assert : !allow_failure , timing : true )
273+ sh . cmd ( :: Travis :: Vcs :: Git :: revision_cmd , echo : true , assert : !allow_failure , timing : true )
274274 cmd ( "gem build dpl.gemspec" , echo : true , assert : !allow_failure , timing : true )
275275 sh . raw "for f in dpl-*.gemspec; do"
276276 sh . raw " base=${f%*.gemspec}"
0 commit comments