16 Commits

Author SHA1 Message Date
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
6aa62090a9 Use a standard git clone when there is no history
Clearly dart-git is still quite buggy. Lets go back to libgit2, this was
quite a big mistake.
2022-05-16 12:08:15 +02:00
396f71a348 GitDesktop: Skip the 'ssh -i ...' if no private key is present
This happens in the case of the tests
2022-03-02 19:41:21 +01:00
901e4b5cb9 Avoid importing dart_git's Result class
It's easier to see where all dart_git is used this way, and this result
class should be refactored into its own package anyway.
2022-01-22 10:11:45 +01:00
f9271edad3 Upgrade to latest dart-git
Most of dart-git's operations are synchronous by default now. The async
functions run on another isolate.
2022-01-13 18:14:01 +01:00
7a92d10df9 avoid-ignoring-return-values++ 2021-12-14 14:02:09 +01:00
e1464f32c8 Change print to Log
Lets avoid using print as that doesn't get saved.
2021-10-13 11:36:05 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
5ca0a78687 Get the default branch properly on the desktop
Fixes #528
2021-09-07 10:38:05 +02:00
01934bc504 Desktop: Enable fetch/push on linux 2021-08-24 17:25:13 +02:00
3a71cca202 Move logging code to its own folder 2021-07-30 14:39:13 +02:00
2505d00dfb Replace dart:io with universal_io
Platform from dart:io cannot be used on the web for reasons. And this
way we get a fake File/Directory class which we can use for atleast
running the web version, even if it won't work.
2021-07-30 11:39:26 +02:00
3da73a15cd Desktop: Detect no default branch 2021-07-25 11:44:49 +02:00
44666ea6f2 git desktop: Fix permissions on the key 2021-07-23 15:18:25 +02:00
cd754e52b5 setup desktop: Get the remote's default branch
Instead of guessing
2021-07-13 17:55:43 +02:00
ea2e0f8df2 macos: Call the git exec for fetching / pushing
This doesn't work for keys which have passwords, but otherwise it seems
to work great.
2021-07-07 23:46:00 +02:00