packit / dist-git-to-source-git

Converting dist-git to source-git
MIT License
4 stars 9 forks source link

packitpatch: use a more reliable way of detecting git repo #80

Closed TomasTomecek closed 3 years ago

TomasTomecek commented 3 years ago

Testing for $PWD/.git is good enough for most of the packages but some change dirs in %prep.

The problem is that we are already in a git repo:

./rpm/BUILD/rpm-4.14.3 ./rpm/.git

so when detecting, we need to make sure this git repo exists:

./rpm/BUILD/rpm-4.14.3/.git

even when we are within the tree structure

58

softwarefactory-project-zuul[bot] commented 3 years ago

Build succeeded.

TomasTomecek commented 3 years ago

Tomas Local CI status: :green_circle:

$ pre-commit run --all-files                                                                                               (58│origin↑127upstream↑1│☐4)
black....................................................................Passed
prettier.................................................................Passed
Check for added large files..............................................Passed
Check python ast.........................................................Passed
Check for merge conflicts................................................Passed
Check Yaml...............................................................Passed
Detect Private Key.......................................................Passed
Fix End of Files.........................................................Passed
Trim Trailing Whitespace.................................................Passed
flake8...................................................................Passed
mypy.....................................................................Passed
Check if rebase is needed................................................Passed

=== 47 passed in 1327.91s (0:22:07) ===