From 445155acf648f56d6ebcb7abd4cd99380282cc26 Mon Sep 17 00:00:00 2001 From: pawelz Date: Tue, 28 Dec 2010 21:07:18 +0000 Subject: [PATCH] - --with git: allow to specify branch (as %ekg2branch macro) Changed files: ekg2.spec -> 1.141 --- ekg2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ekg2.spec b/ekg2.spec index 8cf39dd..688c2b6 100644 --- a/ekg2.spec +++ b/ekg2.spec @@ -338,11 +338,15 @@ Wtyczka xosd dla ekg2. %if %{with git} %setup -q -T -c -n %{name}-%{subver} repo="%ekg2repo" +branch="%ekg2branch" if [ "$repo" = "%%ekg2repo" ]; then repo="git://github.com/leafnode/ekg2.git" fi +if [ "$branch" = "%%ekg2branch" ]; then +repo="master" +fi git init -git fetch $repo master +git fetch $repo $branch git checkout FETCH_HEAD %else %setup -q -c -n %{name}-%{subver} -- 2.43.0