On 2014-08-13 15:35, Jeroen Demeyer wrote:
STDERR: fatal: 'trac' does not appear to be a git repository
STDERR: fatal: Could not read from remote repository.
STDERR:
STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.
The problem seems to be "git remote" configuration (which is mentioned
near the *bottom* of
https://github.com/sagemath/git-trac-command/blob/master/README.md but
it should probably be in the Installation section)
Originally I had
$ git remote -v
origin git://github.com/sagemath/sage.git (fetch)
origin git://github.com/sagemath/sage.git (push)
After doing git trac --user=jdemeyer (I only want read-only access and I
don't want to store my password or ssh key on this machine), I have
jdemeyer@sage3:/opt/sage/sage-6.3$ git remote -v
origin git://github.com/sagemath/sage.git (fetch)
origin git://github.com/sagemath/sage.git (push)
trac git://trac.sagemath.org/sage.git (fetch)
trac [email protected]:sage.git (push)
which still doesn't work, the following command fails without any output
or error message:
$ git fetch trac e4cfbba3cdbda98fbb772f1dc5b1a6b40cae7994
Now let's do as suggested for read-only access in
https://github.com/sagemath/git-trac-command/blob/master/README.md#configuration
$ git remote rm trac
$ git remote add trac http://trac.sagemath.org/sage.git
$ git trac checkout 16800
Loading ticket #16800...
Checking out Trac #16800 remote branch
e4cfbba3cdbda98fbb772f1dc5b1a6b40cae7994 -> local branch
t/16800/e4cfbba3cdbda98fbb772f1dc5b1a6b40cae7994...
Traceback (most recent call last):
File "/opt/sage/sage-6.3/git-trac-command/bin/git-trac", line 18, in
<module>
cmdline.launch()
File "/opt/sage/sage-6.3/git-trac-command/git_trac/cmdline.py", line
204, in launch
app.checkout(args.ticket_or_branch, args.branch_name)
File "/opt/sage/sage-6.3/git-trac-command/git_trac/app.py", line 98,
in checkout
self._checkout_ticket(int(ticket_or_branch), branch_name)
File "/opt/sage/sage-6.3/git-trac-command/git_trac/app.py", line 122,
in _checkout_ticket
self.repo.checkout_new_branch(ticket.branch, branch)
File
"/opt/sage/sage-6.3/git-trac-command/git_trac/git_repository.py", line
123, in checkout_new_branch
self.git.fetch('trac', remote)
File "/opt/sage/sage-6.3/git-trac-command/git_trac/git_interface.py",
line 341, in meth
return self.execute(git_cmd, *args, **kwds)
File "/opt/sage/sage-6.3/git-trac-command/git_trac/git_interface.py",
line 328, in execute
popen_stderr=subprocess.PIPE)
File "/opt/sage/sage-6.3/git-trac-command/git_trac/git_interface.py",
line 263, in _run
raise GitError(result)
git_trac.git_error.GitError: git returned with non-zero exit code (128)
when executing "git fetch trac e4cfbba3cdbda98fbb772f1dc5b1a6b40cae7994"
STDERR: error: no such remote ref
e4cfbba3cdbda98fbb772f1dc5b1a6b40cae7994
So I'm still stuck here...
--
You received this message because you are subscribed to the Google Groups
"sage-git" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.