Commits

Johan Bakker committed 8edd0ab

add support for auto pulling subrepositories

  • Participants
  • Parent commits d2d11f3

Comments (0)

Files changed (1)

 }
 
 clone_puppettree() {
+    echo "[ui]
+username = hosted-operations-team <hosted-operations-team@atlassian.com>
+
+[extentions]
+onsub = /data/bitbucket/onsub/onsub.py
+" > ~/.hgrc 
+    /usr/bin/hg https://bitbucket.org/aragost/onsub/ /data/bitbucket/onsub
     /usr/bin/hg --config ui.ssh="ssh -i /data/bitbucket/ec2bb -o 'StrictHostkeyChecking no'" clone ssh://hg@bitbucket.org/hostedops/puppet /data/bitbucket/puppet
-    /usr/bin/hg --config ui.ssh="ssh -i /data/bitbucket/ec2bb -o 'StrictHostkeyChecking no'" clone ssh://hg@bitbucket.org/hostedops/puppet-module-nagios /data/bitbucket/puppet/modules/nagios
+    oldpath=`pwd`
+    cd /data/bitbucket/puppet
+    /usr/bin/hg onsub 'hg pull -u'
+    cd $oldpath
 }
 
 #Main