Description of problem: When there is no .git directory or another hint, that a repo exists, we get an error message, but it says, it has initialized itself. Either "we have an fatal error" or "we initialize us correctly" but not both at the same time :) I suggest to just report an error, if a really important error happend and add some checks if that tool should be called at all while initilizing the rpm. Version: git-lfs-2.4.2-1.fc27.x86_64.rpm Output of "dnf install git-lfs" : Ist dies in Ordnung? [j/N]:y Pakete werden heruntergeladen: git-lfs-2.4.2-1.fc27.x86_64.rpm 3.0 MB/s | 2.7 MB 00:00 ------------------------------------------------------------------------------------------------------------------------ Gesamt 1.4 MB/s | 2.7 MB 00:01 Transaktionsüberprüfung wird ausgeführt Transaktionsprüfung war erfolgreich. Transaktion wird getestet Transaktionstest war erfolgreich. Transaktion wird ausgeführt Vorbereitung läuft : 1/1 Installieren : git-lfs-2.4.2-1.fc27.x86_64 1/1 Ausgeführtes Scriptlet: git-lfs-2.4.2-1.fc27.x86_64 1/1 Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: Kein Git-Repository (oder irgendein Elternverzeichnis): .git\n" Git LFS initialized. Running as unit: run-rb4c8dff3e6ec4b65a1df7d1bbe1a7876.service Überprüfung läuft : git-lfs-2.4.2-1.fc27.x86_64 1/1 Installiert: git-lfs.x86_64 2.4.2-1.fc27 Fertig.
*** This bug has been marked as a duplicate of bug 1591122 ***