author | Marten Svanfeldt (dev) <developer@svanfeldt.com> | |
Thu, 13 Nov 2008 12:04:09 +0000 (20:04 +0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Fri, 14 Nov 2008 06:36:34 +0000 (22:36 -0800) | ||
commit | bcdd1b4456998256df19ea0347bf4a7fa5410eef | |
tree | b6515507548ee774ef2c81142a5020f186cfefe6 | tree | snapshot |
parent | fe4003f6308b88bcc44a989f12e1baddd97f22d4 | commit | diff |
Git.pm: Make _temp_cache use the repository directory
Update the usage of File::Temp->tempfile to place the temporary files
within the repository directory instead of just letting Perl decide what
directory to use, given there is a repository specified when requesting
the temporary file.
This is needed to be able to fix git-svn on msys as msysperl generates
paths with UNIX-style paths (/tmp/xxx) while the git tools expect natvie
path format (c:/..). The repository dir is stored in native format so by
using it as the base directory for temporary files we always get a
usable native full path.
Signed-off-by: Marten Svanfeldt <developer@svanfeldt.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
Update the usage of File::Temp->tempfile to place the temporary files
within the repository directory instead of just letting Perl decide what
directory to use, given there is a repository specified when requesting
the temporary file.
This is needed to be able to fix git-svn on msys as msysperl generates
paths with UNIX-style paths (/tmp/xxx) while the git tools expect natvie
path format (c:/..). The repository dir is stored in native format so by
using it as the base directory for temporary files we always get a
usable native full path.
Signed-off-by: Marten Svanfeldt <developer@svanfeldt.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
perl/Git.pm | diff | blob | history |