Hi all,

I want to automate bidirectional synchronization (Fossil => Git => Fossil).

in git repo I have this:
/home/juef/git/mirrors/fossil/test: cat .git/hooks/post-commit
#!/bin/sh

fossil_dir=/home/juef/fossil
repo=test

/home/juef/bin/g2f "$repo"
cd "${fossil_dir}/${repo}" && fossil co trunk


in fossil repo I've enabled:
tcl and th1-hooks;

as Commit Script I have this:
tclInvoke catch {exec /home/juef/bin/f2g test}

but it looks like a commit script is executed before commit:
/home/juef/fossil/test: date >> z && f ci -m f1
/home/juef/fossil/test: date >> z && f ci -m f2
/home/juef/fossil/test: date >> z && f ci -m f3

/home/juef/git/mirrors/fossil/test: git --no-pager log -n 3 
--pretty=format:"%s%n"
f2
f1
11

on the page /xfersetup Commit has this description:
Specific TH1 code to run after processing a commit.

however on the page /xfersetup_commit it has:
that runs when a commit is processed


Also:
/home/juef/fossil/test: f set tcl
tcl                  (local)  1
/home/juef/fossil/test: f test-th-eval 'tclReady'
0


Thanks.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!

Attachment: signature.asc
Description: PGP signature

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to