Skip to content

Commit

Permalink
Merge pull request #183 from AchetaGames/projects
Browse files Browse the repository at this point in the history
Remove unnecessary variable
  • Loading branch information
aknarts authored May 18, 2022
2 parents bf72644 + 8f03390 commit 91e2fe3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/models/engine_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ impl EngineData {
cb.credentials(move |url, username, allowed| {
let mut cred_helper = git2::CredentialHelper::new(url);
cred_helper.config(&git_config);
let creds = if allowed.is_ssh_key() {
if allowed.is_ssh_key() {
// TODO: Add configuration to specify the ssh key and password(if needed)
let mut key = gtk4::glib::home_dir();
let mut key = glib::home_dir();
key.push(".ssh");
key.push("id_rsa");

Expand All @@ -451,8 +451,7 @@ impl EngineData {
git2::Cred::default()
} else {
Err(git2::Error::from_str("no authentication available"))
};
creds
}
});
cb
}
Expand Down

0 comments on commit 91e2fe3

Please sign in to comment.