Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
use Credentials class
Browse files Browse the repository at this point in the history
Signed-off-by: PranavPurwar <[email protected]>
  • Loading branch information
PranavPurwar committed Jul 15, 2023
1 parent bcd660a commit e6deef8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ class GitFragment : BaseBindingFragment<FragmentGitBinding>() {
binding.pull.setOnClickListener {
catchException {
repository.pull(
OutputStreamWriter(System.out), binding.rebase.isChecked, getAuthor()
OutputStreamWriter(System.out),
binding.rebase.isChecked,
Credentials(Prefs.gitUsername, Prefs.gitApiKey)
)
withContext(Dispatchers.Main) {
(binding.recyclerview.adapter as GitAdapter).updateCommits(repository.getCommitList())
Expand Down

0 comments on commit e6deef8

Please sign in to comment.