git remote add null pointer

Bug #1718441 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
Critical
Nish Aravamudan

Bug Description

$ git ubuntu remote add ahasenack
Traceback (most recent call last):
  File "/snap/git-ubuntu/254/bin/git-ubuntu", line 22, in <module>
    main()
  File "/snap/git-ubuntu/254/gitubuntu/__main__.py", line 228, in main
    sys.exit(args.func(args))
  File "/snap/git-ubuntu/254/gitubuntu/remote.py", line 75, in cli_main
    args.proto,
  File "/snap/git-ubuntu/254/gitubuntu/remote.py", line 181, in main
    return do_add(repo, package, user, url, remote_name, no_fetch)
  File "/snap/git-ubuntu/254/gitubuntu/remote.py", line 99, in do_add
    remote_name=remote_name,
  File "/snap/git-ubuntu/254/gitubuntu/git_repository.py", line 760, in add_remote
    self._add_remote(remote_name, remote_url)
  File "/snap/git-ubuntu/254/gitubuntu/git_repository.py", line 742, in _add_remote
    'refs/heads/*:refs/remotes/%s/*' % remote_name)
  File "/snap/git-ubuntu/254/usr/lib/python3/dist-packages/pygit2/remote.py", line 543, in create
    check_error(err)
  File "/snap/git-ubuntu/254/usr/lib/python3/dist-packages/pygit2/errors.py", line 49, in check_error
    raise ValueError(message)
ValueError: '(null)' is not a valid remote name.

This is on edge.
Andreas gets the same when he adds me, so it seems to be reproducible

Nish Aravamudan (nacc)
Changed in usd-importer:
milestone: none → 1.0
assignee: nobody → Nish Aravamudan (nacc)
status: New → Fix Committed
importance: Undecided → Critical
status: Fix Committed → Fix Released
Revision history for this message
Nish Aravamudan (nacc) wrote : Re: [Bug 1718441] Re: git remote add null pointer

Fixed in master with 0af2985a3488b0d3c0f6dd6bffdfa3a52b07447a which
has been cherry-picked to snap/{stable, edge}. Sorry, I forgot to do a
bug note in the commit message.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.