Created
May 4, 2012 19:35
-
-
Save von/2597208 to your computer and use it in GitHub Desktop.
Create a git repo with submodule to reproduce issue byplayer/egg #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
pwd=`pwd` | |
mkdir subrepo | |
cd subrepo | |
git init | |
echo Hello World > README | |
git add README | |
git commit -m "Initial Commit" | |
cd .. | |
cd repo | |
mkdir repo | |
cd repo | |
git init | |
echo Hello World > README | |
git add README | |
git commit -m "Initial Commit" | |
git submodule add ${pwd}/subrepo | |
git submodule init | |
git submodule update | |
echo Hello Again > README | |
git commit -a -m "Second Commit" | |
cd subrepo | |
echo Hello Again > README | |
git commit -a -m "Second Commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment