Parcourir la source

website: home_page fix

version-14
Rushabh Mehta il y a 12 ans
Parent
révision
cc539aa81f
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. +3
    -5
      wnf.py

+ 3
- 5
wnf.py Voir le fichier

@@ -186,9 +186,9 @@ def setup_options():
metavar = "remote branch", metavar = "remote branch",
help="git pull (both repos)") help="git pull (both repos)")


parser.add_option("--push", nargs=3, default=False,
metavar = "remote branch comment",
help="git commit + push (both repos) [remote] [branch] [comment]")
parser.add_option("--push", nargs=2, default=False,
metavar = "remote branch",
help="git push (both repos) [remote] [branch]")
parser.add_option("--checkout", nargs=1, default=False, parser.add_option("--checkout", nargs=1, default=False,
metavar = "branch", metavar = "branch",
help="git checkout [branch]") help="git checkout [branch]")
@@ -321,10 +321,8 @@ def run():


elif options.push: elif options.push:
os.chdir('lib') os.chdir('lib')
os.system('git commit -a -m "%s"' % options.push[2])
os.system('git push %s %s' % (options.push[0], options.push[1])) os.system('git push %s %s' % (options.push[0], options.push[1]))
os.chdir('../app') os.chdir('../app')
os.system('git commit -a -m "%s"' % options.push[2])
os.system('git push %s %s' % (options.push[0], options.push[1])) os.system('git push %s %s' % (options.push[0], options.push[1]))
elif options.checkout: elif options.checkout:


Chargement…
Annuler
Enregistrer