From a2b084651909929d58f6b4bc0f3c742d87ee31f6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 27 Apr 2018 15:53:00 +0300 Subject: Add support for repository fragments --- tests/common/git/init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/common/git/init') diff --git a/tests/common/git/init b/tests/common/git/init index e80ebf4..1c15bd6 100755 --- a/tests/common/git/init +++ b/tests/common/git/init @@ -60,6 +60,7 @@ rm -f -r style.git/basic rm -f -r style-basic.git/.git rm -f style-basic.git/README rm -f style-basic.git/INSTALL +rm -f style-basic.git/repositories.manifest # Create master branch for style-basic.git. # @@ -69,10 +70,15 @@ git -C style-basic.git commit -am 'Create' # Create stable branch for style-basic. # +sleep 1 # Make sure that master commits are older than stable commits. git -C style-basic.git branch stable git -C style-basic.git checkout stable touch style-basic.git/README -git -C style-basic.git add README +cat <style-basic.git/repositories.manifest +: 1 +email: user@example.com +EOF +git -C style-basic.git add README repositories.manifest git -C style-basic.git commit -am 'README' # Create master branch for style.git, adding style-basic.git as a submodule. -- cgit v1.1