Learn more about these different git repos.
Other Git URLs
Trying to migrate tickets repo from https://fedorahosted.org/inscript2 to https://pagure.io/inscript2
[parag@f25 mypagure]$ pgimport clone ssh://git@pagure.io/tickets/inscript2.git Cloning into bare repository '/tmp/inscript2.git'...
[parag@f25 mypagure]$ pgimport fedorahosted https://fedorahosted.org/inscript2 Enter you FAS Username: pnemade Enter your FAS password: Repo available 1 - inscript2.git Choose the import destination repo (default 1) : 1 Update inscript2.git with issue :1/2 Update inscript2.git with issue :2/2 [parag@f25 mypagure]$ pgimport push inscript2.git
[parag@f25 mypagure]$ pgimport fedorahosted https://fedorahosted.org/inscript2
Enter you FAS Username: pnemade
Enter your FAS password:
1 - inscript2.git
Choose the import destination repo (default 1) : 1
Update inscript2.git with issue :1/2
Update inscript2.git with issue :2/2
[parag@f25 mypagure]$ pgimport push inscript2.git
remote: Files changed by new commits: remote: remote: repo: inscript2 None tickets remote: To load: d3713eb158194f5d82de43b744b6cb62 remote: Traceback (most recent call last): remote: File "./hooks/post-receive.pagure-ticket", line 104, in <module> remote: main(sys.argv[1:]) remote: File "./hooks/post-receive.pagure-ticket", line 100, in main remote: run_as_post_receive_hook() remote: File "./hooks/post-receive.pagure-ticket", line 96, in run_as_post_receive_hook remote: json_data=json_data) remote: File "/usr/lib/python2.7/site-packages/pagure/lib/git.py", line 434, in update_ticket_from_git remote: reponame, username, namespace)) remote: pagure.exceptions.PagureException: Unknown repo inscript2 of username: None in namespace: tickets remote: Hook ./hooks/post-receive.pagure-ticket failed with error code 1 To ssh://pagure.io/tickets/inscript2.git 3505a1e..5348ca1 master -> master
I saw this same traceback trying to migrate infrastructure tickets the other day.
Pagure is taking 'tickets' as a namespace.
Got this now :)
(pagure-importer) [asinha@cs-as14aho-2-herts-ac-uk tickets]$ pgimport push fedora-join.git remote: Files changed by new commits: remote: remote: repo: fedora-join None tickets/fedora-join remote: To load: e0cc44411e0d40f1b05ae9d8e2066293 remote: Traceback (most recent call last): remote: File "./hooks/post-receive.pagure-ticket", line 104, in <module> remote: main(sys.argv[1:]) remote: File "./hooks/post-receive.pagure-ticket", line 100, in main remote: run_as_post_receive_hook() remote: File "./hooks/post-receive.pagure-ticket", line 96, in run_as_post_receive_hook remote: json_data=json_data) remote: File "/usr/lib/python2.7/site-packages/pagure/lib/git.py", line 434, in update_ticket_from_git remote: reponame, username, namespace)) remote: pagure.exceptions.PagureException: Unknown repo fedora-join of username: None in namespace: tickets/fedora-join remote: Hook ./hooks/post-receive.pagure-ticket failed with error code 1 To ssh://git@pagure.io/tickets/fedora-join/fedora-join.git 9b90ecd..f3c56db master -> master
Ok, I've a putative fix in place on pagure.io, could someone try it?
(Or we could try on stg.pagure.io if someone can reproduce the issue there and ping me on IRC)
@kevin did a small test on stg.pagure.io and it seems it is working :)
Thanks @pingou, worked fine for me in stg.pagure.io
Commit 618ada1 fixes this issue
@pingou changed the status to Fixed
Fixed
Login to comment on this ticket.