Skip to content

Commit

Permalink
gitmodules: Use relative path so modules can also work with http: clones
Browse files Browse the repository at this point in the history
Thanks to the guys at the git mailing list
Peter Krefting <peter@softwolves.pp.se> & Jonathan Nieder <jrnieder@gmail.com>
One can use a relative patch (Starting with an ./ or ../) to support
both http: or git: protocols given the sub-module is hosted on the
same root address.

Also update documentation for the use of "git clone --recursive"
which now works for both protocols.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
  • Loading branch information
Boaz Harrosh committed Jul 15, 2010
1 parent d9646d4 commit 147a714
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "tgt"]
path = tgt
url = git://git.open-osd.org/osc-osd/tgt
url = ../tgt/.git
21 changes: 12 additions & 9 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ a submodule, so a user that needs an OSD2 target need only
clone one head and everything will sync automatically.

The git tree is here:
git-clone git://git.open-osd.org/osc-osd
git-clone --recursive git://git.open-osd.org/osc-osd
or viewed
http://git.open-osd.org/gitweb.cgi?p=osc-osd/.git;a=summary

Expand Down Expand Up @@ -91,26 +91,29 @@ needed is the sqlite-devel package. For example:

all a user need is to follow these steps:
- at some parent folder do
[]$ git clone git://git.open-osd.org/osc-osd
[]$ git clone --recursive git://git.open-osd.org/osc-osd

If behind a firewall and in need of "http:" access do:
[]$ git clone --recursive http://git.open-osd.org/trees/osc-osd/.git

(Please use relatively new git version)
[]$ cd osc-osd/

- At this point we need one additional step
- The above "--recursive" switch cloned everything for us. If you forgot
You'll need one additional step
[]$ git submodule init
[]$ git submodule update
This last command will auto clone the tgt git tree and will
checkout the exact point of the tree needed at that point of
the osc-osd tree.
These last commands will auto clone the tgt git tree.

- That's it we are ready you should now do
- That's it we are ready and should now do:
[]$ make
And it should all compile. See the osd-target/README for
additional information.

- For running the target also read osd-target/README and
tgt/doc/. But basically you should run ./up for a debug
load of an OSD2 target. The backing store of the target
will be at the default /tmp/...
load of an OSD2 target. Edit the ./up script to specify
the backing store of the target, default is at /var/osd-tgt/...

From time to time if you want to update on osc-osd progress
you might do:
Expand Down

0 comments on commit 147a714

Please sign in to comment.