changeset 5585:090949f22c11

test-lily/upload.py: remove hardcoded repo dir. Fixes upload.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 24 Sep 2009 13:11:27 +0200
parents 72f8f8091b03
children a31cc331ee0a
files test-lily/upload.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test-lily/upload.py	Thu Sep 24 09:56:22 2009 +0200
+++ b/test-lily/upload.py	Thu Sep 24 13:11:27 2009 +0200
@@ -181,8 +181,11 @@
     description = repo.git_pipe ('describe --abbrev=39 %s' % repo.get_ref ()).strip ()
     
     git_tag = 'release/%(version_str)s-%(build)d' % locals () 
-    git_tag_cmd = 'git --git-dir downloads/lilypond tag -m "" -a %(git_tag)s %(dirred_branch)s' % locals ()
-    git_push_cmd = 'git --git-dir downloads/lilypond push ssh+git://'+maintainer_git_username+'@git.sv.gnu.org/srv/git/lilypond.git/ refs/tags/%(git_tag)s:refs/tags/%(git_tag)s' % locals ()
+    git_dir = repo.dir
+    git_tag_cmd = 'git --git-dir %(git_dir)s tag -m "" -a %(git_tag)s %(dirred_branch)s' % locals ()
+    # Oops, ugh, does this work with shallow clone?  better set
+    # self.source.shallow = False in lilypond.py...
+    git_push_cmd = 'git --git-dir %(git_dir)s push ssh+git://'+maintainer_git_username+'@git.sv.gnu.org/srv/git/lilypond.git/ refs/tags/%(git_tag)s:refs/tags/%(git_tag)s' % locals ()
     gub_tag_cmd = 'git tag -m "release of lilypond %(description)s (%(version_str)s-%(build)d)"  "gub-release-lilypond-%(version_str)s-%(build)d"' % locals ()
 
     cmds.append (git_tag_cmd)