@@ -52,7 +52,7 @@ func New(repo git.Repository, prime primeable) *Checkout {
5252 return & Checkout {repo , prime }
5353}
5454
55- func (r * Checkout ) Run (ns * project.Namespaced , branchName , cachePath , targetPath string , noClone , bareCheckout bool ) (_ string , rerr error ) {
55+ func (r * Checkout ) Run (ns * project.Namespaced , branchName , cachePath , targetPath string , noClone , bareCheckout , portable bool ) (_ string , rerr error ) {
5656 defer r .rationalizeError (& rerr )
5757
5858 path , err := r .pathToUse (ns , targetPath )
@@ -94,7 +94,7 @@ func (r *Checkout) Run(ns *project.Namespaced, branchName, cachePath, targetPath
9494 return "" , errNoCommitID
9595 }
9696
97- if err := CreateProjectFiles (path , cachePath , owner , proj , branchName , commitID .String (), language ); err != nil {
97+ if err := CreateProjectFiles (path , cachePath , owner , proj , branchName , commitID .String (), language , portable ); err != nil {
9898 return "" , errs .Wrap (err , "Could not create project files" )
9999 }
100100
@@ -182,7 +182,7 @@ func (r *Checkout) fetchProject(
182182 return owner , proj , commitID , branchName , language , pj .RepoURL , nil
183183}
184184
185- func CreateProjectFiles (checkoutPath , cachePath , owner , name , branch , commitID , language string ) error {
185+ func CreateProjectFiles (checkoutPath , cachePath , owner , name , branch , commitID , language string , portable bool ) error {
186186 configFile := filepath .Join (checkoutPath , constants .ConfigFileName )
187187 if ! fileutils .FileExists (configFile ) {
188188 _ , err := projectfile .Create (& projectfile.CreateParams {
@@ -192,6 +192,7 @@ func CreateProjectFiles(checkoutPath, cachePath, owner, name, branch, commitID,
192192 Directory : checkoutPath ,
193193 Language : language ,
194194 Cache : cachePath ,
195+ Portable : portable ,
195196 })
196197 if err != nil {
197198 if osutils .IsAccessDeniedError (err ) {
0 commit comments