Skip to contentSkip to conversation

git submodule deinit

DISCUSSION Loic Dachary 3 participants 5 messages Mar 5, 2015 – Mar 6, 2015

lore
Share & tools
lore
#0 lore raw

Hi Danny,

Unfortunately it looks like submodule deinit requires a version of git that's not in precise.

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-deb-precise-amd64-basic/log.cgi?log=9a0ac62a9cf27573d5345143a3bc6c6b737031db

+ git submodule deinit -f .

error: pathspec 'deinit' did not match any file(s) known to git.

error: pathspec '-f' did not match any file(s) known to git.

I'll revert that and go back to rm until we find a better way.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw
Quoted 9 lines · Loic Dachary

Hi Danny,

Unfortunately it looks like submodule deinit requires a version of git that's not in precise.

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-deb-precise-amd64-basic/log.cgi?log=9a0ac62a9cf27573d5345143a3bc6c6b737031db

+ git submodule deinit -f .

Quoted 8 lines

error: pathspec 'deinit' did not match any file(s) known to git.

error: pathspec '-f' did not match any file(s) known to git.

I'll revert that and go back to rm until we find a better way.

Cheers

I recently discovered that some of the gitbuilders (at least the Red Hat-based ones) use a git version 1.8.5.3 built directly from source and installed into /srv.

https://github.com/ceph/autobuild-ceph/blob/master/fabfile.py#L1078

The packager side of me cannot stop my eyebrow from involuntarily twitching at this, but the hacker side of me suspects you may be able to just call this install_git() function on Ubuntu Precise.

- Ken

#2 lore raw
Quoted 23 lines · Ken Dreyer
Quoted 9 lines · Loic Dachary

Hi Danny,

Unfortunately it looks like submodule deinit requires a version of git that's not in precise.

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-deb-precise-amd64-basic/log.cgi?log=9a0ac62a9cf27573d5345143a3bc6c6b737031db

+ git submodule deinit -f .

Quoted 8 lines

error: pathspec 'deinit' did not match any file(s) known to git.

error: pathspec '-f' did not match any file(s) known to git.

I'll revert that and go back to rm until we find a better way.

Cheers

I recently discovered that some of the gitbuilders (at least the Red Hat-based ones) use a git version 1.8.5.3 built directly from source and installed into /srv.

Quoted 5 lines

https://github.com/ceph/autobuild-ceph/blob/master/fabfile.py#L1078

The packager side of me cannot stop my eyebrow from involuntarily twitching at this, but the hacker side of me suspects you may be able to just call this install_git() function on Ubuntu Precise.

Thanks for the hint !

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw
In reply to Loic Dachary

Am 05.03.2015 um 22:14 schrieb Loic Dachary:

Quoted 7 lines

Hi Danny,

Unfortunately it looks like submodule deinit requires a version of git that's not in precise.

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-deb-precise-amd64-basic/log.cgi?log=9a0ac62a9cf27573d5345143a3bc6c6b737031db

Quoted 7 lines

+ git submodule deinit -f .

error: pathspec 'deinit' did not match any file(s) known to git.

error: pathspec '-f' did not match any file(s) known to git.

I'll revert that and go back to rm until we find a better way.

'git submodule deinit' was introduced in git 1.8.2(-rc3), 4. Mar 2013, it is quite old, the upcoming git version is 2.3.2.

Which version is used in precise? The code of deinit is only a script. This may could also be integrated in the existing gitbuilder code as a helper function. if there is no way to update git to an newer version.

Danny

#4 lore raw

Hi Danny,

Quoted 10 lines · Danny Al-Gaaf

Am 05.03.2015 um 22:14 schrieb Loic Dachary:

Quoted 9 lines

Hi Danny,

Unfortunately it looks like submodule deinit requires a version of git that's not in precise.

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-deb-precise-amd64-basic/log.cgi?log=9a0ac62a9cf27573d5345143a3bc6c6b737031db

+ git submodule deinit -f .

Quoted 8 lines
Quoted 5 lines

error: pathspec 'deinit' did not match any file(s) known to git.

error: pathspec '-f' did not match any file(s) known to git.

I'll revert that and go back to rm until we find a better way.

'git submodule deinit' was introduced in git 1.8.2(-rc3), 4. Mar 2013, it is quite old, the upcoming git version is 2.3.2.

$ git --version
git version 1.7.9.5
Quoted 4 lines

Which version is used in precise? The code of deinit is only a script. This may could also be integrated in the existing gitbuilder code as a helper function. if there is no way to update git to an newer version.

Adding such a helper to autobuild-ceph/build-ceph.sh & all to get rid of the explicit rm would be a great idea.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre