tests: Check refspec switch updates git branch/commit correctly

Mercurial has no concept of a local tracking branch so we only need to
test git repositories here.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Paul Barker
2020-06-15 22:03:32 +02:00
committed by Jan Kiszka
parent 24f2f66cf5
commit c2bbfee8f3
4 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
true

View File

@@ -0,0 +1,13 @@
header:
version: 8
repos:
this:
kas:
url: https://github.com/siemens/kas.git
refspec: 907816a5c4094b59a36aec12226e71c461c05b77
kas2:
url: https://github.com/siemens/kas.git
refspec: master

View File

@@ -0,0 +1,13 @@
header:
version: 8
repos:
this:
kas:
url: https://github.com/siemens/kas.git
refspec: master
kas2:
url: https://github.com/siemens/kas.git
refspec: 907816a5c4094b59a36aec12226e71c461c05b77