Commit graph

65 commits

Author SHA1 Message Date
Joey Hess
9fb8038166 Windows: Assistant now logs to daemon.log.
Yes, this means that git annex webapp on windows execs git-annex, which
execs itself to set env, and the execs itself again to redirect logs.

This is disgusting. This is Windows(TM).
2014-06-17 19:27:54 -04:00
Joey Hess
3b914da9bc
update 2014-06-17 14:33:47 -04:00
Joey Hess
5977e161f3 close 2014-06-17 14:07:16 -04:00
Joey Hess
d27891a70d split out windows service todo 2014-06-16 18:34:51 -04:00
Joey Hess
a5411590df http://hackage.haskell.org/package/pontarius-xmpp 2014-03-20 12:51:47 -04:00
Joey Hess
1052eeface Windows: Fix some filename encoding bugs.
http://git-annex.branchable.com/bugs/Unicode_file_names_ignored_on_Windows/

Not a complete fix yet.
2014-03-19 15:57:56 -04:00
Joey Hess
c30cc4a119 update with user feedback 2014-03-05 13:52:23 -04:00
Joey Hess
1ba60ac3e9 update 2014-02-27 17:29:03 -04:00
Joey Hess
15f0afd874 update 2014-02-27 13:37:57 -04:00
Joey Hess
07ec352f9c much less hacky windows XMPP library deps install method 2014-02-27 11:34:06 -04:00
Joey Hess
ce82fe1915 another pkg-config 2014-02-26 21:11:40 -04:00
Joey Hess
f95b4f6d88 progress on XMPP for windows, but not linking yet 2014-02-26 21:10:32 -04:00
Joey Hess
6c105ab6c3 tiny process on XMPP 2014-02-26 18:31:18 -04:00
Joey Hess
2dc336b1b8 remove todo item about gcywin git, seems no longer a problem! 2014-02-25 17:12:21 -04:00
Joey Hess
326aa6c604
webdav and S3 tested and working on windows, for real now 2014-02-25 16:41:44 -04:00
Joey Hess
2b66aaa763 Windows webdav: Fix DOS path separator bug.
Use posix </> etc for urls.
2014-02-25 15:26:33 -04:00
Joey Hess
fd09798e40 windows webapp: fix rsync.net support 2014-02-14 15:47:54 -04:00
Joey Hess
8613f226b3 reorg 2014-02-14 14:39:54 -04:00
Joey Hess
37cb65a99f remote ssh server testing and working on windows 2014-02-14 14:27:11 -04:00
Joey Hess
01b07a9ca6 update 2014-02-14 14:06:51 -04:00
Joey Hess
d007d1ac0c windows: hack to ensure HOME is always set 2014-02-14 14:03:24 -04:00
Joey Hess
c60f0b57d2 windows: Fix daemon pid file locking.
Well, as much as it can be fixed on windows. Not atomic; not entirely
guarded against the wrong process having the pid file locked.
2014-02-13 17:02:28 -04:00
Joey Hess
f11f7520b5 windows: Fix process termination code.
The ctrl-c hack used before didn't actually seem to work.

No haskell libraries expose TerminateProcess. I tried just calling it via
FFI, but got segfaults, probably to do with the wacky process handle not
being managed correctly. Moving it all into one C function worked.

This was hell. The EvilLinker hack was just final icing on the cake.
We all know what the cake was made of.
2014-02-13 15:53:10 -04:00
Joey Hess
84083ecdd3 Windows: Crazy hack to make file manager not start hidden underneath web browser window
I can't even..
2014-02-13 13:16:28 -04:00
Joey Hess
36e66997c6 Windows: Fix startAssistant to not wait for ever for a non-daemonizing process
Seemed to fix several problems.
2014-02-13 13:05:07 -04:00
Joey Hess
8952ccec1b windows: fix fsck --incremental to not crash
Although it is still not incremental.
2014-02-13 12:40:10 -04:00
Joey Hess
029a1c431a
remove windows --git-dir unix style path hack
This is no longer necessary, at least with msysgit 1.8.5.2.msysgit.0.
Its root cause may have been fixed by other recent git path fixes.
It was causing the webapp to fail to make repos on other drives.
2014-02-11 16:12:22 -04:00
Joey Hess
2ed728e7e6
note 2014-02-11 14:16:15 -04:00
Joey Hess
fa24ba2520 plumb creds from webapp to initremote
Avoids abusing setting environment variables, which was always a hack
and won't work on windows.
2014-02-11 14:07:56 -04:00
Joey Hess
66c9cb6e39
tried everything in webapp on windows. add list of TODOs 2014-02-10 18:24:36 -04:00
Joey Hess
5d7777cbe2 set up git email config in clone repos too when running test
This fixes the problem of the environment variables apparently not being
seen on Windows. I could probably remove the setting of the env vars from
Test.hs now as this covers it better.

Note that outside the test suite, git-annex on windows seems to manage to
configure the repo so commits work on its own.
2014-02-04 14:31:52 -04:00
Joey Hess
2287c88bfd update 2014-02-03 21:24:23 -04:00
Joey Hess
1c997fd08c fix test suite to pass on windows
On windows, the sync of the second cloned repo to origin failed, because
synced/master was a non-fast-forward. This may be a bug of its own, but
it's not the issue that this test was intended to test, so disconnect
the repos from origin before syncing.
2014-02-03 12:12:50 -04:00
Joey Hess
08afe3a1f6 fix failing test case on Windows
ensure file being modified is all read before it's opened for write
2014-02-03 10:20:18 -04:00
Joey Hess
ee164ccbbb windows test suite down to only 2 failures 2014-01-30 15:57:41 -04:00
Joey Hess
721cc0cd22 rework annexed object locking in direct mode & support Windows
Seems that locking of annexed objects when they're being dropped was broken
in direct mode:

* When taking the lock before dropping, it created the .git/annex/objects
  file, as an empty file. It seems that the dropping code deleted that,
  but that is not right, and for all I know could in some situation cause
  a corrupted object to leak out.
* When the lock was checked, it actually tried to open each direct mode
  file, and checked if it was locked. Not the same lock used above, and
  could also fail if some consumer of the file locked it.

Fixed this, and added windows support by switching direct mode to lock a
.lck file.
2014-01-28 16:43:11 -04:00
Joey Hess
0419f241a4 I think I've convinced myself that the assistant is safe on windows despite the lack of lsof 2013-12-17 14:07:37 -04:00
Joey Hess
551abf439f update on XMPP (going to be a real PITA) 2013-12-11 11:24:02 -04:00
Joey Hess
2fd63f3cfa port transferkeys to windows; make stopping in progress transfers work too (probably)
transferkeys had used special FDs for communication, but that would be
quite annoying to do in Windows.

Instead, use stdin and stdout. But, to avoid commands like rsync stomping
on them and messing up the communications channel, they're duplicated to a
different handle; stdin is replaced with a null handle, and stdout is
replaced with a copy of stderr. This should all work in windows too.

Stopping in progress transfers may work on windows.. if the types unify
anyway. ;) May need some more porting.
2013-12-10 23:19:18 -04:00
Joey Hess
714e031d19 todo 2013-12-10 14:34:35 -04:00
Joey Hess
2c7c07286c update 2013-12-10 01:45:21 -04:00
Joey Hess
8699a36438 update 2013-12-10 01:00:10 -04:00
Joey Hess
4a5ab9b1e7 Tweak magic number to fix bad behavior in Firefox, which was caused by an earlier fix to bad behavior in Chromium.
Browsers are crap.
2013-12-09 17:44:45 -04:00
Joey Hess
2e48dcf6a7 update 2013-12-09 16:00:48 -04:00
Joey Hess
012f770066 webapp 100% working in windows + chrome; slightly buggy in windows + firefox 2013-12-09 15:01:43 -04:00
Joey Hess
2ef99ae3ef update 2013-12-07 11:47:17 -04:00
Joey Hess
139c4c3a9f update 2013-12-05 15:19:14 -04:00
Joey Hess
3a1c407ef9 fixed windows startup scan file add bug 2013-12-04 23:55:35 -04:00
Joey Hess
8ef79c1f83 windows wtf how did that work moment 2013-12-04 17:39:58 -04:00
Joey Hess
f30300e877 work around for windows watcher cabal build problem 2013-11-12 21:23:20 -04:00