Bug 1639866

Summary: fatal error message while installing package, but inits itself
Product: [Fedora] Fedora Reporter: customercare
Component: git-lfsAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 27CC: carlwgeorge, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:04:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description customercare 2018-10-16 18:56:34 UTC
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.

Comment 1 Carl George 🤠 2018-10-16 19:04:24 UTC

*** This bug has been marked as a duplicate of bug 1591122 ***