1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
|
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
|
-
+
|
zPushCmd = mprintf("git push --mirror %$", zPushUrl);
rc = fossil_system(zPushCmd);
if( rc ){
fossil_fatal("cannot push content using: %s", zPushCmd);
}else if( db_is_writeable("repository") ){
db_unprotect(PROTECT_CONFIG);
db_multi_exec("REPLACE INTO config(name,value,mtime)"
"VALUES('gitpush:%q',1,now())", zPushUrl);
"VALUES('gitpush:%q','{}',now())", zPushUrl);
db_protect_pop();
}
fossil_free(zPushCmd);
}
}
/*
|