After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769996 - gitg can't commit in an new/empty repository
gitg can't commit in an new/empty repository
Status: RESOLVED FIXED
Product: gitg
Classification: Applications
Component: gitg
git master
Other Linux
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-16 15:53 UTC by Timur Kristóf
Modified: 2016-08-17 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Timur Kristóf 2016-08-16 15:53:39 UTC
This issue is reproducible with both gitg-3.20.1-1.fc24.x86_64 and the latest git master (as of today).

Steps to reproduce:

1. Launch a terminal
2. Create a git repo: mkdir aaa; cd aaa; git init
3. Launch gitg
4. Add the just created repo to gitg
5. Switch back to the terminal: echo "*.pdf -diff" > .gitattributes
6. Switch back to gitg
7. Go to the commit view of the new repo
8. Double-click the .gitattributes file to stage it
9. Click the commit button

Expected results:

- The .gitattributes file is staged
- gitg allows to commit the .gitattributes file

Actual results:

- The .gitattributes file is not staged according to 'git status'
- gitg says there are no changes to commit
Comment 1 jessevdk@gmail.com 2016-08-17 12:21:35 UTC
Problems seems to be not specific to .gitattributes, but rather committing the initial commit in an empty repository.