[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40082: Fix `fetch: if_needed` to avoid fetching when using a fixed commit



Title: GitLab

morgan pushed to branch main at The Tor Project / Applications / RBM

Commits:

  • 9dedbe52
    by Nicolas Vigier at 2025-02-26T13:43:01+01:00
    Bug 40082: Fix `fetch: if_needed` to avoid fetching when using a fixed commit
    
    Remove trailing newline from output of `git rev-parse` when comparing
    it with `git_hash`.
    

1 changed file:

Changes:

  • lib/RBM.pm
    ... ... @@ -427,6 +427,7 @@ sub git_need_fetch {
    427 427
             my ($stdout, undef, $success) = capture_exec('git', 'rev-parse',
    
    428 428
                                             '--verify', "$git_hash^{commit}");
    
    429 429
             return 1 unless $success;
    
    430
    +        chomp $stdout;
    
    430 431
             # If rev-parse returns the same as git_hash, then git_hash is
    
    431 432
             # a hash and there is no need to fetch
    
    432 433
             return 0 if $stdout eq $git_hash;
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx