Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Created April 1, 2014 14:53
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 pamolloy/9915782 to your computer and use it in GitHub Desktop.
Save pamolloy/9915782 to your computer and use it in GitHub Desktop.
`git submodule` commands cause `remote: fatal: Not a git repository: '.'`
#!/bin/bash
TMPDIR=$(mktemp --directory --quiet)
git clone $HOME/http $TMPDIR
cd $TMPDIR
git submodule init
git submodule update
jekyll &>/home/git/jekyll.log
rm -rf $TMPDIR
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment