Bug 34595

Summary: allow running not from the toplevel Git working dir perhaps?
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: girar-nmuAssignee: viy <viy>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: viy
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2018-03-01 13:14:26 MSK
perl-Gear-Rules-0.194-alt1.noarch
girar-nmu-1.49-alt1.x86_64

Now, the commands require to be run from inside a Git/Gear repo from the toplevel working dir. They check the presence of .git.

Perhaps, it would be possible to run them from deeper directories by using:

git rev-parse --show-toplevel
git rev-parse --git-dir

or similar options?
Comment 1 viy 2018-03-01 13:29:52 MSK
Частично реализовано. 
В каких командах хотелось бы иметь такую возможность в первую очередь?
Comment 2 Ivan Zakharyaschev 2018-03-01 15:19:14 MSK
(In reply to comment #1)
> Частично реализовано. 
> В каких командах хотелось бы иметь такую возможность в первую очередь?

girar-nmu-helper-git-push-build
Comment 3 Ivan Zakharyaschev 2018-03-01 15:20:20 MSK
(In reply to comment #2)
> (In reply to comment #1)
> > Частично реализовано. 
> > В каких командах хотелось бы иметь такую возможность в первую очередь?
> 
> girar-nmu-helper-git-push-build

Сейчас она тег создаёт (при -T), а дальше возникает ошибка.
Comment 4 Repository Robot 2018-03-02 18:25:00 MSK
girar-nmu-1.50-alt1 -> sisyphus:

Fri Mar 02 2018 Igor Vlasenko <viy@altlinux.ru> 1.50-alt1
- girar-nmu-helper-git-push-build: allow running not from
  the toplevel Git working dir (closes: #34595)