1. 14 11月, 2008 5 次提交
    • M
      git-svn: Update git-svn to use the ability to place temporary files within repository directory · 1b3069a7
      Marten Svanfeldt (dev) 提交于
      This fixes git-svn within msys where Perl will provide temporary files with path
      such as /tmp while the git suit expects native Windows paths.
      Signed-off-by: NMarten Svanfeldt <developer@svanfeldt.com>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      1b3069a7
    • M
      Git.pm: Make _temp_cache use the repository directory · bcdd1b44
      Marten Svanfeldt (dev) 提交于
      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: NMarten Svanfeldt <developer@svanfeldt.com>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      bcdd1b44
    • D
      git-svn: proper detection of bare repositories · fe4003f6
      Deskin Miller 提交于
      When in a bare repository (or .git, for that matter), git-svn would fail
      to initialise properly, since git rev-parse --show-cdup would not output
      anything.  However, git rev-parse --show-cdup actually returns an error
      code if it's really not in a git directory.
      
      Fix the issue by checking for an explicit error from git rev-parse, and
      setting $git_dir appropriately if instead it just does not output.
      Signed-off-by: NDeskin Miller <deskinm@umich.edu>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      fe4003f6
    • E
      git-svn: respect i18n.commitencoding config · 16fc08e2
      Eric Wong 提交于
      SVN itself always stores log messages in the repository as
      UTF-8.  git always stores/retrieves everything as raw binary
      data with no transformations whatsoever.
      
      To interact with SVN, we need to encode log messages as UTF-8
      before sending them to SVN, as SVN cannot do it for us.  When
      retrieving log messages from SVN, we also need to (attempt to)
      reencode the UTF-8 log message back to the user-specified commit
      encoding.
      
      Note, handling i18n.logoutputencoding for "git svn log" also
      needs to be done in a future change.
      
      Also, this change only deals with the encoding of commit
      messages and nothing else (path names, blob content, ...).
      
      In-Reply-To: <8b168cfb0810282014r789ac01dnec51824de1078f0@mail.gmail.com>
      James North <tocapicha@gmail.com> wrote:
      > Hi,
      >
      > I'm using git-svn on a system with ISO-8859-1 encoding. The problem is
      > when I try to use "git svn dcommit" to send changes to a remote svn
      > (also ISO-8859-1).
      >
      > Seems like git-svn is sending commit messages with utf-8 (just a
      > guessing...) and they look bad on the remote svn log. E.g. "Ca?\241a
      > de cami?\243n"
      >
      > I have tried using i18n.commitencoding=ISO-8859-1 as suggested by the
      > warning when doing "git svn dcommit" but messages still are sent with
      > wrong encoding.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      16fc08e2
    • E
      git-svn: don't escape tilde ('~') for http(s) URLs · 6a004d3f
      Eric Wong 提交于
      Thanks to Jose Carlos Garcia Sogo and Björn Steinbrink for the
      bug report.
      
      On 2008.10.18 23:39:19 +0200, Björn Steinbrink wrote:
      > Hi,
      >
      > Jose Carlos Garcia Sogo reported on #git that a git-svn clone of this
      > svn repo fails for him:
      > https://sucs.org/~welshbyte/svn/backuptool/trunk
      >
      > I can reproduce that here with:
      > git-svn version 1.6.0.2.541.g46dc1.dirty (svn 1.5.1)
      >
      > The error message I get is:
      > Apache got a malformed URI: Unusable URI: it does not refer to this
      > repository at /usr/local/libexec/git-core/git-svn line 4057
      >
      > strace revealed that git-svn url-encodes ~ while svn does not do that.
      >
      > For svn we have:
      > write(5, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\">
      > <S:src-path>https://sucs.org/~welshbyte/svn/backuptool/trunk</S:src-path>...
      >
      > While git-svn shows:
      > write(7, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\">
      > <S:src-path>https://sucs.org/%7Ewelshbyte/svn/backuptool/trunk</S:src-path>...
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      6a004d3f
  2. 13 11月, 2008 6 次提交
  3. 12 11月, 2008 9 次提交
  4. 10 11月, 2008 5 次提交
  5. 09 11月, 2008 10 次提交
  6. 07 11月, 2008 4 次提交
  7. 06 11月, 2008 1 次提交