1206 call s:prepare(1) |
1206 call s:prepare(1) |
1207 call append(0, ['', '']) |
1207 call append(0, ['', '']) |
1208 normal! 2G |
1208 normal! 2G |
1209 silent! redraw |
1209 silent! redraw |
1210 |
1210 |
1211 let s:clone_opt = [] |
1211 " Set remote name, overriding a possible user git config's clone.defaultRemoteName |
|
1212 let s:clone_opt = ['--origin', 'origin'] |
1212 if get(g:, 'plug_shallow', 1) |
1213 if get(g:, 'plug_shallow', 1) |
1213 call extend(s:clone_opt, ['--depth', '1']) |
1214 call extend(s:clone_opt, ['--depth', '1']) |
1214 if s:git_version_requirement(1, 7, 10) |
1215 if s:git_version_requirement(1, 7, 10) |
1215 call add(s:clone_opt, '--no-single-branch') |
1216 call add(s:clone_opt, '--no-single-branch') |
1216 endif |
1217 endif |