Skip to content

Instantly share code, notes, and snippets.

@von
Created May 4, 2012 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save von/2597208 to your computer and use it in GitHub Desktop.
Save von/2597208 to your computer and use it in GitHub Desktop.
Create a git repo with submodule to reproduce issue byplayer/egg #41
#!/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