The sound distributed version control system

#68 Importing a git repository crashes: called Option::unwrap() on a None value

Closed on November 17, 2020
emily on November 15, 2020

When I try and run these commands:

git clone git@github.com:printfn/fend
cd fend
pijul git

I immediately get the following crash:

name = 'pijul'
operating_system = 'unix:OSX'
crate_version = '1.0.0-alpha.1'
explanation = '''
Panic occurred in file '/Users/emily/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-alpha.1/src/commands/git.rs' at line 664
'''
cause = 'called `Option::unwrap()` on a `None` value'
method = 'Panic'
backtrace = '''

   0: 0x10cb6a48a - rust_begin_unwind
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
   1: 0x10cbbec5f - core::panicking::panic_fmt::hcdc9362d34d55302
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
   2: 0x10cbbebb7 - core::panicking::panic::hbacefa6aad2005ac
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:50
   3: 0x10c4b6980 - pijul::commands::git::import_commit::h57d69b34bceaf758
   4: 0x10c4af7e5 - pijul::commands::git::import::hb90fa16f702b2542
   5: 0x10c4ad1e5 - pijul::commands::git::Git::run::h7511760be330a221
   6: 0x10c3b6059 - pijul::run::{{closure}}::hb79971f2c564fad3
   7: 0x10c38920b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h2d12f2f2e1174b72
   8: 0x10c441c09 - tokio::runtime::enter::Enter::block_on::h52835af4ba588237
   9: 0x10c4d1c12 - tokio::runtime::context::enter::h1b90a8cca4c63810
  10: 0x10c441dc9 - tokio::runtime::handle::Handle::enter::h466060b2c8c62649
  11: 0x10c4ecfb6 - pijul::main::hd7d1b103bb87937f
  12: 0x10c4bd29a - std::sys_common::backtrace::__rust_begin_short_backtrace::h477d2d3ebad6ec2a
  13: 0x10c4bf02c - std::rt::lang_start::{{closure}}::he179352af27d0030
  14: 0x10cb6acd0 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h8a9b574793342aba
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
                 - std::panicking::try::do_call::h4f96def3e784cc72
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
                 - std::panicking::try::h852a41061a270947
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
                 - std::panic::catch_unwind::h1c1a28455dde417c
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
                 - std::rt::lang_start_internal::hd0c760d47f593c0a
                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
  15: 0x10c4ed0c9 - _main'''
pmeunier added a change on November 17, 2020
CVAT6LN3SYYLREM6NLM4IUPFI5EX3BL6MRPFTY24ROJFSB3J5OOQC
main
pmeunier on November 17, 2020

Hi! Thanks for reporting this. I could reproduce the problem, and fixed it with the change attached to this discussion (#CVAT6LN3SYYLREM6NLM4IUPFI5EX3BL6MRPFTY24ROJFSB3J5OOQC).

pmeunier closed this discussion on November 17, 2020