HTTP redirection with git-clone/git-fetch ?
- From
- Josef Weidendorfer <josef.weidendorfer@gmx.de>
- Date
- Nov 9, 2005, 22:31 UTC
- Message-ID
- <200511092331.36421.Josef.Weidendorfer@gmx.de>
Hi,
git-clone fails silently with a HTTP URL where the server responds with a redirection (ie. header line "Location:..."). I tried to add "-L" to the curl command line in git-clone.sh, but this is only half of a fix. Afterwards I get:
defaulting to local storage area error: Couldn't get http://repo/project.git/refs/heads/origin for heads/origin Failed writing body error: Could not interpret heads/origin as something to pull
This seems because git-fetch should understand redirections, too. I am not familiar to the curl API. So perhaps another one can try to fix this?
Josef