aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
blob: 8c861a312a48f47627dcc4c338337eee5eca1170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

commits_file=$1
repo_path=$2
temp=$3

cat $commits_file | while read i
do
	hash=$(echo "$i" | cut -f1)
	git -C $repo_path checkout $hash
	../dna-backup commit -v 2 $repo_path $temp
done