SINTEF / Splipy

Spline modelling made easy.
GNU General Public License v3.0
102 stars 18 forks source link

Fix push_documentation.py #74

Closed TheBB closed 6 years ago

TheBB commented 6 years ago

Some paths were different from the repo where we got this from, it seems.

VikingScientist commented 6 years ago

And it works now? Have you tested it? I see that the bug from #48 is still present

TheBB commented 6 years ago

Well I just tried to fix the push script, I didn't actually run or update anything. But #48 is fixed now I think.

VikingScientist commented 6 years ago

Tried running the script and got the following error message:

Cloning into '/tmp/tmp034e9tog'...
done.
error: pathspec 'gh-pages' did not match any file(s) known to git.
Traceback (most recent call last):
  File "./push_documentation.py", line 14, in <module>
    run(['git', 'checkout', 'gh-pages'], cwd=tgt, check=True)
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'checkout', 'gh-pages']' returned non-zero exit status 1

All documentation pages are up now, so I guess we can close #48

TheBB commented 6 years ago

You need a local branch called gh-pages.

TheBB commented 6 years ago

Also you need a remote called upstream to push to.

VikingScientist commented 6 years ago

This is great. Squash commits. Add a sentence in README.rst on how (and when) to use this and we'll merge it.