@@ -544,10 +544,6 @@ func main() {
544
544
* flVerbose = * flDeprecatedV
545
545
}
546
546
log := func () * logging.Logger {
547
- if strings .HasPrefix (* flErrorFile , "." ) {
548
- fmt .Fprintf (os .Stderr , "ERROR: --error-file may not start with '.'\n " )
549
- os .Exit (1 )
550
- }
551
547
dir , file := makeAbsPath (* flErrorFile , absRoot ).Split ()
552
548
return logging .New (dir , file , * flVerbose )
553
549
}()
@@ -597,9 +593,6 @@ func main() {
597
593
parts := strings .Split (strings .Trim (* flRepo , "/" ), "/" )
598
594
* flLink = parts [len (parts )- 1 ]
599
595
}
600
- if strings .HasPrefix (filepath .Base (* flLink ), "." ) {
601
- handleConfigError (log , true , "ERROR: --link must not start with '.'" )
602
- }
603
596
604
597
if * flDeprecatedWait != 0 {
605
598
// Back-compat
@@ -647,12 +640,6 @@ func main() {
647
640
* flMaxFailures = * flDeprecatedMaxSyncFailures
648
641
}
649
642
650
- if * flTouchFile != "" {
651
- if strings .HasPrefix (* flTouchFile , "." ) {
652
- handleConfigError (log , true , "ERROR: --touch-file may not start with '.'" )
653
- }
654
- }
655
-
656
643
if * flDeprecatedSyncHookCommand != "" {
657
644
// Back-compat
658
645
log .V (0 ).Info ("setting --exechook-command from deprecated --sync-hook-command" )
@@ -2301,8 +2288,7 @@ OPTIONS
2301
2288
--error-file <string>, $GITSYNC_ERROR_FILE
2302
2289
The path to an optional file into which errors will be written.
2303
2290
This may be an absolute path or a relative path, in which case it
2304
- is relative to --root. If it is relative to --root, the first path
2305
- element may not start with a period.
2291
+ is relative to --root.
2306
2292
2307
2293
--exechook-backoff <duration>, $GITSYNC_EXECHOOK_BACKOFF
2308
2294
The time to wait before retrying a failed --exechook-command. If
@@ -2387,11 +2373,10 @@ OPTIONS
2387
2373
The path to at which to create a symlink which points to the
2388
2374
current git directory, at the currently synced hash. This may be
2389
2375
an absolute path or a relative path, in which case it is relative
2390
- to --root. The last path element is the name of the link and must
2391
- not start with a period. Consumers of the synced files should
2392
- always use this link - it is updated atomically and should always
2393
- be valid. The basename of the target of the link is the current
2394
- hash. If not specified, this defaults to the leaf dir of --repo.
2376
+ to --root. Consumers of the synced files should always use this
2377
+ link - it is updated atomically and should always be valid. The
2378
+ basename of the target of the link is the current hash. If not
2379
+ specified, this defaults to the leaf dir of --repo.
2395
2380
2396
2381
--man
2397
2382
Print this manual and exit.
@@ -2484,8 +2469,7 @@ OPTIONS
2484
2469
--touch-file <string>, $GITSYNC_TOUCH_FILE
2485
2470
The path to an optional file which will be touched whenever a sync
2486
2471
completes. This may be an absolute path or a relative path, in
2487
- which case it is relative to --root. If it is relative to --root,
2488
- the first path element may not start with a period.
2472
+ which case it is relative to --root.
2489
2473
2490
2474
--username <string>, $GITSYNC_USERNAME
2491
2475
The username to use for git authentication (see --password-file or
0 commit comments