git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
b6d6c29a2f5f8b1a854d4d7bab167d2991e923c8 blob 524 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
#!/bin/sh

FILES_DIR="www/files"

OLDIFS="$IFS"
IFS='&'
set -- $QUERY_STRING
IFS="$OLDIFS"

while test $# -gt 0
do
	key=${1%%=*}
	val=${1#*=}

	case "$key" in
	"sha1") sha1="$val" ;;
	*) echo >&2 "unknown key '$key'" ;;
	esac

	shift
done

if test -d "$FILES_DIR"
then
	if test -z "$sha1"
	then
		echo 'Status: 200 OK'
		echo
		ls "$FILES_DIR" | tr '-' ' '
	else
		if test -f "$FILES_DIR/$sha1"-*
		then
			echo 'Status: 200 OK'
			echo
			cat "$FILES_DIR/$sha1"-*
		else
			echo 'Status: 404 Not Found'
			echo
		fi
	fi
fi
debug log:

solving b6d6c29a2f ...
found b6d6c29a2f in https://public-inbox.org/git/20170916080731.13925-20-chriscool@tuxfamily.org/ ||
	https://public-inbox.org/git/20180319133147.15413-24-chriscool@tuxfamily.org/ ||
	https://public-inbox.org/git/20180103163403.11303-26-chriscool@tuxfamily.org/

applying [1/3] https://public-inbox.org/git/20170916080731.13925-20-chriscool@tuxfamily.org/
diff --git a/t/lib-httpd/list.sh b/t/lib-httpd/list.sh
new file mode 100644
index 0000000000..b6d6c29a2f

Checking patch t/lib-httpd/list.sh...
Applied patch t/lib-httpd/list.sh cleanly.

skipping https://public-inbox.org/git/20180319133147.15413-24-chriscool@tuxfamily.org/ for b6d6c29a2f
skipping https://public-inbox.org/git/20180103163403.11303-26-chriscool@tuxfamily.org/ for b6d6c29a2f
index at:
100644 b6d6c29a2f5f8b1a854d4d7bab167d2991e923c8	t/lib-httpd/list.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).