chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-debrebase: test suite: gdr-subcommands: Better error handling/debugging
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index ce89a7091d015ead95d70602224c5212970c7af7..8722522daeed3856a6497e1a92552f6646c62c6a 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-31,8
+31,8
@@
export DGIT_TEST_DEBUG
: ${DGIT_TEST_DISTRO+ ${distro=${DGIT_TEST_DISTRO}}}
: ${DGIT_TEST_DISTRO+ ${distro=${DGIT_TEST_DISTRO}}}
-export GIT_COMMITTER_DATE='1
440253867
+0100'
-export GIT_AUTHOR_DATE='1
440253867
+0100'
+export GIT_COMMITTER_DATE='1
515000000
+0100'
+export GIT_AUTHOR_DATE='1
515000000
+0100'
root=`pwd`
troot=$root/tests
root=`pwd`
troot=$root/tests
@@
-189,6
+189,13
@@
t-git-none () {
(set -e; cd $tmp/git; tar xf $troot/git-template.tar)
}
(set -e; cd $tmp/git; tar xf $troot/git-template.tar)
}
+t-salsa-add-remote () {
+ local d=$tmp/salsa/$p
+ mkdir -p $d
+ (set -e; cd $d; git init --bare)
+ git remote add ${1-origin} $d
+}
+
t-git-merge-base () {
git merge-base $1 $2 || test $? = 1
}
t-git-merge-base () {
git merge-base $1 $2 || test $? = 1
}
@@
-997,6
+1004,11
@@
t-commit () {
revision=$(( ${revision-0} + 1 ))
}
revision=$(( ${revision-0} + 1 ))
}
+t-dch-commit () {
+ faketime @"${GIT_AUTHOR_DATE% *}" dch "$@"
+ git commit -m "dch $*" debian/changelog
+}
+
t-git-config () {
git config --global "$@"
}
t-git-config () {
git config --global "$@"
}