Re: [PATCH 5/5] FRV: Introduce asm-offsets for FRV arch

From: Linus Torvalds
Date: Wed Jul 05 2006 - 13:01:54 EST




On Wed, 5 Jul 2006, David Woodhouse wrote:
>
> (It still sucks that I have to give both URLs because we can't use just
> one for both pulling and browsing).

Hey, if you are willing to add some manual redirection to your gitweb
setup, you could _probably_ do something like the appended..

(This is totally untested, but you get the idea - teach gitweb to export
a "git_redirect" file at the top of the repo name, and teach "git fetch"
to look if that exists and use another repo if so)

Linus
---
diff --git a/git-fetch.sh b/git-fetch.sh
index 48818f8..e3c880c 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -267,12 +267,22 @@ fetch_main () {

rref="$rref$LF$remote_name"

- # There are transports that can fetch only one head at a time...
+ if [ -n "$GIT_SSL_NO_VERIFY" ]; then
+ curl_extra_args="-k"
+ fi
+
+ # See if we can turn http:// into git://
case "$remote" in
http://* | https://*)
- if [ -n "$GIT_SSL_NO_VERIFY" ]; then
- curl_extra_args="-k"
+ redirect=$(curl -nsfL $curl_extra_args "$remote/git_redirect")
+ if [ -n "$redirect" ]; then
+ remote="$redirect"
fi
+ esac
+
+ # There are transports that can fetch only one head at a time...
+ case "$remote" in
+ http://* | https://*)
max_depth=5
depth=0
head="ref: $remote_name"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/