зеркало из https://github.com/github/ruby.git
--date=iso-local does not work with old git
This commit is contained in:
Родитель
703f0cd3d0
Коммит
542a1ade80
|
@ -618,9 +618,15 @@ class VCS
|
||||||
end
|
end
|
||||||
|
|
||||||
def format_changelog(path, arg)
|
def format_changelog(path, arg)
|
||||||
cmd = %W"#{COMMAND} log --format=medium --notes=commits --date=iso-local --topo-order"
|
env = {'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}
|
||||||
|
cmd = %W"#{COMMAND} log --format=medium --notes=commits --topo-order"
|
||||||
|
date = "--date=iso-local"
|
||||||
|
unless system(env, *cmd, date, chdir: @srcdir, out: NullDevice, exception: false)
|
||||||
|
date = "--date=iso"
|
||||||
|
end
|
||||||
|
cmd << date
|
||||||
cmd.concat(arg)
|
cmd.concat(arg)
|
||||||
system({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, *cmd, chdir: @srcdir, out: path)
|
system(env, *cmd, chdir: @srcdir, out: path)
|
||||||
end
|
end
|
||||||
|
|
||||||
def upstream
|
def upstream
|
||||||
|
|
Загрузка…
Ссылка в новой задаче