Bug 34595 - allow running not from the toplevel Git working dir perhaps?
Summary: allow running not from the toplevel Git working dir perhaps?
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: girar-nmu (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 13:14 MSK by Ivan Zakharyaschev
Modified: 2018-03-13 10:23 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)