File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 36
36
validate_bool($bare , $update )
37
37
38
38
if $owner != ' root' {
39
- $su_do = " ${git::params::su_cmd} -l ${owner} -c \" "
39
+ $su_do = " ${git::params::su_cmd} ${owner} -c \" "
40
40
$su_end = ' "'
41
41
} else {
42
42
$su_do = ' '
96
96
exec {"git_${name}_co_branch" :
97
97
cwd => $path ,
98
98
provider => shell,
99
- command => " ${su_do}${git::params::bin} checkout ${branch }${su_end} " ,
100
- unless => " ${su_do}${git::params::bin} branch|${git::params::grep_cmd} -P '\\ * ${branch } '${su_end} " ,
99
+ command => " ${su_do}${git::params::bin} checkout ${real_branch }${su_end} " ,
100
+ unless => " ${su_do}${git::params::bin} branch|${git::params::grep_cmd} -P '\\ * ${real_branch } '${su_end} " ,
101
101
require => Exec[" git_repo_${name} " ],
102
102
}
103
103
if $update {
104
104
exec {"git_${name}_pull" :
105
105
cwd => $path ,
106
106
provider => shell,
107
- command => " ${su_do}${git::params::bin} reset --hard origin/${branch }${su_end} " ,
108
- unless => " ${su_do}${git::params::bin} fetch && ${git::params::bin} diff origin/${branch } --no-color --exit-code${su_end} " ,
107
+ command => " ${su_do}${git::params::bin} reset --hard origin/${real_branch }${su_end} " ,
108
+ unless => " ${su_do}${git::params::bin} fetch && ${git::params::bin} diff origin/${real_branch } --no-color --exit-code${su_end} " ,
109
109
require => Exec[" git_repo_${name} " ],
110
110
}
111
111
}
You can’t perform that action at this time.
0 commit comments