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 686488 - Use libgvc from a submodule
Use libgvc from a submodule
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Sound
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control center sound maintainer(s)
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-19 18:27 UTC by Giovanni Campagna
Modified: 2012-11-27 10:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use libgnome-volume-control from a submodule (338.96 KB, patch)
2012-10-19 18:27 UTC, Giovanni Campagna
needs-work Details | Review
Use libgnome-volume-control from a submodule (295.09 KB, patch)
2012-10-22 20:15 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2012-10-19 18:27:25 UTC
As discussed in the mailing list
Comment 1 Giovanni Campagna 2012-10-19 18:27:44 UTC
Created attachment 226849 [details] [review]
Use libgnome-volume-control from a submodule

To be shared with gnome-settings-daemon and gnome-shell
Comment 2 Bastien Nocera 2012-10-22 12:46:47 UTC
Review of attachment 226849 [details] [review]:

gvc-mixer-dialog.h is still in the submodule.
the gitmodules file needs to state a revision.
Comment 3 Giovanni Campagna 2012-10-22 20:07:54 UTC
I fixed gvc-mixer-dialog and gvc-channel-bar in current master, and will post an updated patch.

.gitmodules does not include a revision, as that is tracked by git automatically in the superproject. If you fetch a submodule explicitly, git status will report it as dirty, and you'll need to commit it.
Comment 4 Giovanni Campagna 2012-10-22 20:15:00 UTC
Created attachment 227019 [details] [review]
Use libgnome-volume-control from a submodule

To be shared with gnome-settings-daemon and gnome-shell
Comment 5 Bastien Nocera 2012-10-26 11:01:16 UTC
The whole point of using a submodule is so that we can set a particular revision of the module to check out and avoid breaking everything when we make changes for one of the modules.
Comment 6 Giovanni Campagna 2012-10-26 13:32:06 UTC
And that's what I said.
Again, a git submodule is always locked to the specific commit, whose hash is stored in the blob file for the submodule directory.
If you want to change that hash, you need to cd inside the submodule, checkout a new revision, go back to the superproject and make a commit. There is no way to "update" the submodule from the superproject (git fetch is recursive, but that's irrelevant), and if you don't commit the revision change, git submodule update will revert the submodule to the latest stored hash.
Comment 7 Bastien Nocera 2012-11-27 10:36:08 UTC
Attachment 227019 [details] pushed as f1812b2 - Use libgnome-volume-control from a submodule