summaryrefslogtreecommitdiff
path: root/bin/gitthing
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-07-01 19:10:47 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-07-01 19:10:47 -0400
commitbc0107813be28ab9532f136047d23bbaa158ee8b (patch)
treea58775772295b25d4955124be85159926cf3c88a /bin/gitthing
parent55f9bd8d5226eb49f5899c5ddca89c655ef96e9b (diff)
fixo
Diffstat (limited to 'bin/gitthing')
-rwxr-xr-xbin/gitthing5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/gitthing b/bin/gitthing
index 7bac2e2..ff7b5ac 100755
--- a/bin/gitthing
+++ b/bin/gitthing
@@ -43,12 +43,11 @@ main() {
git checkout -b "$branch" || true
git checkout "$branch"
- waurl="http://web.archive.org/web/$time/$url"
if [[ -n "$filepart" ]]; then
- file="$top/dat/content-file/$(url2murl "${waurl#http://}")"
+ file="$top/dat/content-file/$time/$(url2murl "$url")"
cp "$file" .
else
- dir="$top/dat/content-dir/$(url2murl "${waurl#http://}")"
+ dir="$top/dat/content-dir/$time/$(url2murl "$url")"
comm -23 \
<(git ls-files) \
<(< "$dir/metadata.txt" awk '{print $1}') \