Skip to content

Commit 313dac3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enable-unstable-sha-256-for-git2
2 parents 9c0a47e + f004ef0 commit 313dac3

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ jobs:
344344
runs-on: macos-latest
345345
steps:
346346
- name: Set up Homebrew
347-
uses: Homebrew/actions/setup-homebrew@master
347+
uses: Homebrew/actions/setup-homebrew@main
348348

349349
- name: Install stable Rust
350350
uses: actions-rs/toolchain@v1

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ GitUI is in beta and may contain bugs and missing features. However, for persona
109109
##### [Arch Linux](https://archlinux.org/packages/extra/x86_64/gitui/)
110110

111111
```sh
112-
pacman -S gitui
112+
sudo pacman -S gitui
113113
```
114114

115115
##### Fedora

‎asyncgit/src/sync/config.rs‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
use std::str::FromStr;
2-
31
use crate::error::Result;
42
use git2::Repository;
53
use scopetime::scope_time;
64
use serde::{Deserialize, Serialize};
5+
use std::str::FromStr;
76

87
use super::{repository::repo, RepoPath};
98

@@ -77,7 +76,6 @@ pub enum PushDefaultStrategyConfig {
7776

7877
impl FromStr for PushDefaultStrategyConfig {
7978
type Err = crate::Error;
80-
8179
fn from_str(value: &str) -> std::result::Result<Self, Self::Err> {
8280
match value {
8381
"nothing" => Ok(Self::Nothing),
@@ -97,9 +95,7 @@ pub fn push_default_strategy_config_repo(
9795
) -> Result<PushDefaultStrategyConfig> {
9896
(get_config_string_repo(repo, "push.default")?).map_or_else(
9997
|| Ok(PushDefaultStrategyConfig::default()),
100-
|entry_str| {
101-
PushDefaultStrategyConfig::from_str(entry_str.as_str())
102-
},
98+
|entry_str| entry_str.parse(),
10399
)
104100
}
105101

0 commit comments

Comments
 (0)