go-sync icon indicating copy to clipboard operation
go-sync copied to clipboard

Patch <reference index> requires local file

Open fire opened this issue 10 years ago • 4 comments

>gosync h p
NAME:
   gosync patch - gosync patch <localfile> <reference index> <reference source> [<output>]

USAGE:
   gosync patch [command options] [arguments...]

DESCRIPTION:
   Recreate the reference source file, using an index and a local file that is believed to be similar.
The index should be produced by "gosync build".

<reference index> is a .gosync file and may be a local, unc network path or http/https url
<reference source> is corresponding target and may be a local, unc network path or http/https url
<output> is optional. If not specified, the local file will be overwritten when done.

must currently be a local file contrary to documentation.

>gosync.exe patch Test01.exr http://localhost/Test02.gosync http://localhost/Test02.exr
Starting patching process
open http://localhost/Test02.gosync: The filename, directory name, or volume label syntax is incorrect.

fire avatar Nov 24 '15 17:11 fire

Apparently <reference source> cannot be a local file.

fire avatar Nov 24 '15 18:11 fire

It's a local file in the sense that it uses file open(), not http get, iirc.

Redundancy avatar Nov 25 '15 00:11 Redundancy

I hope it is possible to have it be a local, unc network path or http/https url.

fire avatar Nov 25 '15 08:11 fire

Ah, you're right. Should definitely be fixed.

Redundancy avatar Nov 25 '15 09:11 Redundancy