Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forced update when publishing nidm webpages #391

Open
cmaumet opened this issue Jul 12, 2016 · 2 comments
Open

Remove forced update when publishing nidm webpages #391

cmaumet opened this issue Jul 12, 2016 · 2 comments
Labels

Comments

@cmaumet
Copy link
Member

cmaumet commented Jul 12, 2016

Currently, when the NIDM webpages are published online (cf. https://github.com/incf-nidash/nidm/wiki/Generate-the-NIDM-Website for more info) with:

fab publish

, the update of the gh-pages branch is forced (cf. https://github.com/incf-nidash/nidm/blob/master/doc/fabfile.py#L35).

I am wondering if we could change the set up to remove the --force option. This would be safer but also would keep track of changes on the website pages.

From the pelican documentation it does not look like --force is necessary, but when I tried removing it, I got a "non-fastforward" error:

Done: Processed 0 articles and 3 pages in 0.79 seconds.
[localhost] local: ghp-import output
[localhost] local: git push upstream gh-pages
To [email protected]:incf-nidash/nidm.git
 ! [rejected]        gh-pages -> gh-pages (non-fast-forward)
error: failed to push some refs to '[email protected]:incf-nidash/nidm.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Fatal error: local() encountered an error (return code 1) while executing 'git push upstream gh-pages'

@nicholsn: What do you think? Would you have any hints?

@cmaumet cmaumet added the website label Jul 1, 2017
@khelm
Copy link
Contributor

khelm commented Aug 9, 2018

@cmaumet - Is this still a relevant issue or could this be closed?

@cmaumet
Copy link
Member Author

cmaumet commented Aug 9, 2018

Hi @khelm! Unfortunately, this is still current, the line in question has moved here: https://github.com/incf-nidash/nidm-specs/blob/master/doc/fabfile.py#L65.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants