@@ -227,7 +227,7 @@ def clone!
227
227
if not authors . nil?
228
228
cmd = "git "
229
229
cmd += "--git-dir='#{ repos } ' " unless repos == ''
230
- cmd += "config --local svn.authorsfile #{ authors } "
230
+ cmd += "config svn.authorsfile #{ authors } "
231
231
run_command ( cmd )
232
232
end
233
233
@@ -282,8 +282,8 @@ def fix_tags
282
282
283
283
current = { }
284
284
if !@options [ :bare ]
285
- current [ 'user.name' ] = run_command ( "#{ _cmd } config --local --get user.name" , false )
286
- current [ 'user.email' ] = run_command ( "#{ _cmd } config --local --get user.email" , false )
285
+ current [ 'user.name' ] = run_command ( "#{ _cmd } config --get user.name" , false )
286
+ current [ 'user.email' ] = run_command ( "#{ _cmd } config --get user.email" , false )
287
287
end
288
288
289
289
@tags . each do |tag |
@@ -294,8 +294,8 @@ def fix_tags
294
294
author = run_command ( "#{ _cmd } log -1 --pretty=format:'%an' #{ tag } " )
295
295
email = run_command ( "#{ _cmd } log -1 --pretty=format:'%ae' #{ tag } " )
296
296
297
- run_command ( "#{ _cmd } config --local user.name '#{ escape_quotes ( author ) } '" )
298
- run_command ( "#{ _cmd } config --local user.email '#{ escape_quotes ( email ) } '" )
297
+ run_command ( "#{ _cmd } config user.name '#{ escape_quotes ( author ) } '" )
298
+ run_command ( "#{ _cmd } config user.email '#{ escape_quotes ( email ) } '" )
299
299
300
300
cmd = ''
301
301
cmd << "GIT_COMMITTER_DATE='#{ escape_quotes ( date ) } ' "
@@ -316,9 +316,9 @@ def fix_tags
316
316
# If a line was read, then there was a config value so restore it.
317
317
# Otherwise unset the value because originally there was none.
318
318
if value . strip != ''
319
- run_command ( "#{ _cmd } config --local #{ name } '#{ value . strip } '" )
319
+ run_command ( "#{ _cmd } config #{ name } '#{ value . strip } '" )
320
320
else
321
- run_command ( "#{ _cmd } config --local --unset #{ name } " )
321
+ run_command ( "#{ _cmd } config --unset #{ name } " )
322
322
end
323
323
end
324
324
end
0 commit comments