git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Non-ASCII paths and git-cvsserver

From
Ssf <sf@b-i-t.de>
Date
Nov 9, 2006, 11:11 UTC
Message-ID
<45530CEE.6030008@b-i-t.de>
Hello,

I want to access a git repository via git-cvsserver. The problem is that the repository contains paths with umlauts. These paths come out quoted and escaped when checked out with cvs.

Test case:
#! /bin/sh
set -e -u -x

WORK='/tmp/gittest' FILE=$'\303\244'

mkdir "${WORK}" mkdir "${WORK}/git"

#trap 'rm -r "${WORK}"' EXIT
cd "${WORK}/git"

git init-db git repo-config gitcvs.enabled 1 git repo-config gitcvs.logfile "${WORK}/git/.git/cvslog.txt"

touch "${FILE}" git add "${FILE}" git commit -a -mx

cd "${WORK}"

CVS_SERVER='git-cvsserver' export CVS_SERVER

cvs -d ":fork:${WORK}/git/.git" co master
ls master
### end
This is what I get:
+ WORK=/tmp/gittest
+ FILE=$'\303\244'
+ mkdir /tmp/gittest
+ mkdir /tmp/gittest/git
+ cd /tmp/gittest/git
+ git init-db
defaulting to local storage area
+ git repo-config gitcvs.enabled 1
+ git repo-config gitcvs.logfile /tmp/gittest/git/.git/cvslog.txt
+ touch $'\303\244'
+ git add $'\303\244'
+ git commit -a -mx
Committing initial tree 23d6145738bba135994775c19d6e8ae707d399ee
+ cd /tmp/gittest
+ CVS_SERVER=git-cvsserver
+ export CVS_SERVER
+ cvs -d :fork:/tmp/gittest/git/.git co master
cvs checkout: Updating master
U master/"\303\244"
+ ls master
"\303\244"  CVS
I do not speak perl so can anyone help?
Regards
Stephan
Next: Martin Langhoff
Message 1 of 11 in “Non-ASCII paths and git-cvsserver”
  1. sfNov 9, 2006
  2. Martin LanghoffNov 10, 2006
  3. Junio C HamanoNov 10, 2006
  4. sfNov 13, 2006
  5. Jakub NarebskiNov 13, 2006
  6. Robin RosenbergNov 13, 2006
  7. Jakub NarebskiNov 13, 2006
  8. Robin RosenbergNov 13, 2006
  9. Junio C HamanoNov 13, 2006
  10. Martin LanghoffNov 13, 2006
  11. sfNov 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.