73c5c56a38
Handle branch is null bug
...
Hopefully I've now handled every single case of it.
2021-02-18 17:18:33 +01:00
130f2fe9a0
Rename Repository => GitJournalRepo
...
Repository is too vague of a word and it gets me confused with the Git
Repository. Also shorterned Repository to Repo. It's easier to read and
write.
2021-02-15 22:28:53 +01:00
18719856b7
Detect current branch null in the same way
2021-02-12 15:33:00 +01:00
b7e274c937
Add FileName option in Note title settings
...
This doesn't do anything right now. It just shows the option.
2021-02-12 15:32:10 +01:00
e80fff575c
Move Editor Heuristics to be self contained
...
This way it can easily be used in other editors
2021-02-03 11:56:20 +01:00
4c7efdb2dc
Move cloning logic to its own file
...
This has gotten very complex and needs to be properly tested. It's the
number 1 bug.
2021-01-19 15:40:08 +01:00
53e9e9db29
Allow the remote main branch to give an error
...
In the case of empty repos.
2021-01-13 23:36:54 +01:00
770cb4da68
Remove stupid code
...
I'm not sure what I was thinking when I wrote this. I guess it's good to
know that some users no longer have public or private keys since I
fucked up the migration.
Fixes APP-P7
2020-12-27 21:54:03 +01:00
6af5975e30
Add another debug statement
2020-12-27 10:37:14 +01:00
bf812a8b95
Actually check if the remote is configured
...
I'm not sure how this went undetected for 2 months :(
2020-12-27 10:30:19 +01:00
360ece0de7
Perform the 'git merge' in the 'cloning ..' screen
...
This step can take a lot of time, and I would prefer if the user didn't
see a blank screen after cloning for a short while.
2020-12-26 17:18:11 +01:00
1ebac121df
Remove extra debugging info
2020-12-26 11:49:03 +01:00
c64d30ec2a
Stop guessing the default branch
...
Talk to the remote via ssh and ask it which is the default branch. This
has only been implemented for Android right now, so this breaks the ios
build.
Fixes #363
2020-12-16 12:17:22 +01:00
1c55546340
Only Print repository Info in Android
...
It's only to diagnose a specific bug in Android.
2020-11-27 00:26:11 +01:00
e5caafd6a1
Add debug statements for the remotes
...
Makes it easier to debug some of the users issues.
2020-11-17 23:10:47 +01:00
b2f9ad28c3
Remove debug statements for debugging icloud problem
2020-11-17 23:10:25 +01:00
6983f91a47
Fix iCloud problem
...
Fixes #296
2020-11-17 14:09:59 +01:00
231053ea8a
Add some more debugging info
...
Not sure why I get errors where the folder is not a git repo even though
it contains a .git folder.
2020-11-16 00:21:30 +01:00
5571fdb65e
Use time.dart
...
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01:00
7fc6847933
Remote Settings: Display the git host
2020-11-09 12:55:54 +01:00
0d22fa76c4
isolate firebase analytics code to one file
...
This way it'll be easier to remove in the future
2020-11-09 11:16:21 +01:00
6205e47aa3
Move adding a single file to an empty repo to after the merge
...
Otherwise this is always added.
2020-11-08 10:34:27 +01:00
2bb0646f48
Log errors if public/private key is empty
...
This shouldn't ever happen. It means a migration has gone wrong.
2020-11-07 10:05:41 +01:00
aa805f80c5
SyncButton: Show a different icon on error
2020-10-23 15:35:46 +02:00
a9abf5d9b3
Make Setting Migrations independent of the Settings class
...
That class is going to lose many of its members, and I don't want to
keep the old ones just for compatibility sake.
Also give each setting the concept on an id - will be used later.
2020-10-23 14:38:16 +02:00
c9673da721
Move Setting migrations to its own file
2020-10-23 14:23:37 +02:00
f75e119995
Make Settings take the folderName as a parameter
2020-10-23 02:29:48 +02:00
b2aa96cbe1
Give a Repository a name
2020-10-23 02:10:42 +02:00
43206219da
Merge AppState into Repository
...
The 'AppState' was more of a Repository state, and it's easier if it
lives inside the Repository class.
2020-10-23 02:01:45 +02:00
770394a8f9
Rename StateContainer to Respository
2020-10-23 01:38:47 +02:00