OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Checkout script not working? Manual solution?

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Checkout script not working? Manual solution?

Postby mbria » Mon Jan 28, 2013 9:21 am

Probably it's me, but looks like the checkout script published here:

It's not working correctly.

Running it ends with:

Code: Select all
error: The requested URL returned error: 403
fatal: Couldn't find remote ref master


Here you have the full output:
Code: Select all
redi:~/ojs/source/versions# ./checkout.sh marcbria ojs ojs-2.4-redi-trad-v02
Initialized empty Git repository in /home/ojs/source/versions/ojs-2.4-redi-trad-v02/.git/
Enter passphrase for key '/root/.ssh/id_rsa':
remote: Counting objects: 168174, done.
remote: Compressing objects: 100% (29951/29951), done.
remote: Total 168174 (delta 119367), reused 166527 (delta 118126)
Receiving objects: 100% (168174/168174), 45.17 MiB | 259 KiB/s, done.
Resolving deltas: 100% (119367/119367), done.
Checking out files: 100% (5943/5943), done.
Initializing submodules...
Submodule 'lib/pkp' (git@github.com:marcbria/pkp-lib.git) registered for path 'lib/pkp'
Submodule 'plugins/importexport/duracloud/lib/DuraCloud-PHP' (git@github.com:asmecher/DuraCloud-PHP) registered for path 'plugins/importexport/duracloud/lib/DuraCloud-PHP'
Initialized empty Git repository in /home/ojs/source/versions/ojs-2.4-redi-trad-v02/lib/pkp/.git/
Enter passphrase for key '/root/.ssh/id_rsa':
remote: Counting objects: 43937, done.
remote: Compressing objects: 100% (11928/11928), done.
remote: Total 43937 (delta 30742), reused 43433 (delta 30291)
Receiving objects: 100% (43937/43937), 14.32 MiB | 175 KiB/s, done.
Resolving deltas: 100% (30742/30742), done.
Enter passphrase for key '/root/.ssh/id_rsa':
Submodule path 'lib/pkp': checked out '24934a2300644b319492a449b231a88aad07a166'
Initialized empty Git repository in /home/ojs/source/versions/ojs-2.4-redi-trad-v02/plugins/importexport/duracloud/lib/DuraCloud-PHP/.git/
Enter passphrase for key '/root/.ssh/id_rsa':
remote: Counting objects: 63, done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 63 (delta 28), reused 6 (delta 2)
Receiving objects: 100% (63/63), 24.29 KiB, done.
Resolving deltas: 100% (28/28), done.
Enter passphrase for key '/root/.ssh/id_rsa':
Submodule path 'plugins/importexport/duracloud/lib/DuraCloud-PHP': checked out '31a1192887b7ff70a058ead1353f49be7246dccf'
patching file .gitmodules
Configuring submodule remote...
Switched to branch "master"
error: The requested URL returned error: 403
fatal: Couldn't find remote ref master


Meanwhile, I tried to get the code directly with:
1) At github, branch OJS and PKP-LIB repos
2) Then to checkout the OJS 2.4 stable branch locally:
Code: Select all
$ git clone git@github.com:marcbria/ojs.git
$ git checkout origin/ojs-stable-2_4
$ cd lib/pkp
$ git clone git@github.com:marcbria/pkp-lib.git
$ git checkout origin/ojs-stable-2_4


Alec, do you think this is enough to get the last stable OJS release?

Thanks for your help,
m.
mbria
 
Posts: 299
Joined: Wed Dec 14, 2005 4:15 am

Re: Checkout script not working? Manual solution?

Postby asmecher » Mon Jan 28, 2013 10:05 am

Hi Marc,

Yes, those commands should work fine. We've had some trouble with different versions of git behaving differently, which might explain the trouble you're having with that script; what version are you running? (git --version)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8673
Joined: Wed Aug 10, 2005 12:56 pm

Re: Checkout script not working? Manual solution?

Postby mbria » Tue Jan 29, 2013 1:43 am

git version 1.5.6.5
(from the repos of Debian GNU/Linux 5.0 - that is the standard gnu/Linux to install in my university)

Cheers,
m.
mbria
 
Posts: 299
Joined: Wed Dec 14, 2005 4:15 am

Re: Checkout script not working? Manual solution?

Postby mbria » Tue Jan 29, 2013 9:39 am

Ok, let's see that remote branches are checked out, but the point now it's they are not created locally...

My local version points to (no brach) and when I push to github nobody knows what branch need to be updated... and fails (with no error :-/)
I tried to create a local branch and then push it to github, but I didn't succeed.

I recognize I'm really ashamed (and stressed) with my poor git skills, but asking is the only way I will get the translation job on time.

sorry for the annoyance,
m.
mbria
 
Posts: 299
Joined: Wed Dec 14, 2005 4:15 am

Re: Checkout script not working? Manual solution?

Postby asmecher » Tue Jan 29, 2013 9:55 am

Hi Marc,

I'm no git expert myself, so my apologies if I'm not detecting something quick to fix. Could you try working through the instructions at the older version of the wiki page? These are basically what got worked into the script, but with some changes. (And please don't let the deadline cause you stress -- we really appreciate this kind of contribution and the last thing we'll do is scold you over the timing.)

Thanks,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8673
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron