Find git executable at run time
[git-darcs-import.git] / bugs / issue558_broken_pipe.sh
blob4aa7189b01880f6328411c5e7d75bad979bd6fb5
1 #!/usr/bin/env bash
3 # For issue588, "amend-record --look-for-adds end up with two "addfile" entries"
5 set -ev
6 rm -rf temp1
7 darcs init --repodir temp1
9 export EMAIL=me
11 cd temp1
13 date > f
14 darcs add f
15 darcs rec -am p1
16 for (( i=0 ; i < 500; i=i+1 )); do
17 echo $i >> f;
18 darcs rec -am p$i
19 done
21 darcs changes 2> err | head
23 touch correcterr
25 diff correcterr err
27 cd ..
29 rm -rf temp1