git submodule add --single-branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like to do a shallow clone of a submodule like this:
$ git submodule add --branch master --single-branch --depth 5 repo dir
but it doesn't work. I think '--single-branch' is not yet implemented for submodules.

With the clone command it works:
$ git clone --branch master --single-branch --depth 5 repo dir

Is it possible to do something like this with a submodule?

Stefan


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]