Fossil SCM

No need to do a 'ci'-check when permitHooks is false anyway.

jan.nijtmans 2014-01-17 15:22 trunk
Commit bed113ca3fb1d89426a38d23c2996369746bf29b
1 file changed +3 -5
+3 -5
--- src/manifest.c
+++ src/manifest.c
@@ -1981,17 +1981,15 @@
19811981
if( i==0 || fossil_strcmp(zTagUuid, p->aTag[i-1].zUuid)!=0 ){
19821982
blob_appendf(&comment,
19831983
" Edit [%S]:",
19841984
zTagUuid);
19851985
branchMove = 0;
1986
- if( db_exists("SELECT 1 FROM event, blob"
1986
+ if( permitHooks && db_exists("SELECT 1 FROM event, blob"
19871987
" WHERE event.type='ci' AND event.objid=blob.rid"
19881988
" AND blob.uuid='%s'", zTagUuid) ){
1989
- if( permitHooks ){
1990
- zScript = xfer_commit_code();
1991
- zUuid = zTagUuid;
1992
- }
1989
+ zScript = xfer_commit_code();
1990
+ zUuid = zTagUuid;
19931991
}
19941992
}
19951993
zName = p->aTag[i].zName;
19961994
zValue = p->aTag[i].zValue;
19971995
if( strcmp(zName, "*branch")==0 ){
19981996
--- src/manifest.c
+++ src/manifest.c
@@ -1981,17 +1981,15 @@
1981 if( i==0 || fossil_strcmp(zTagUuid, p->aTag[i-1].zUuid)!=0 ){
1982 blob_appendf(&comment,
1983 " Edit [%S]:",
1984 zTagUuid);
1985 branchMove = 0;
1986 if( db_exists("SELECT 1 FROM event, blob"
1987 " WHERE event.type='ci' AND event.objid=blob.rid"
1988 " AND blob.uuid='%s'", zTagUuid) ){
1989 if( permitHooks ){
1990 zScript = xfer_commit_code();
1991 zUuid = zTagUuid;
1992 }
1993 }
1994 }
1995 zName = p->aTag[i].zName;
1996 zValue = p->aTag[i].zValue;
1997 if( strcmp(zName, "*branch")==0 ){
1998
--- src/manifest.c
+++ src/manifest.c
@@ -1981,17 +1981,15 @@
1981 if( i==0 || fossil_strcmp(zTagUuid, p->aTag[i-1].zUuid)!=0 ){
1982 blob_appendf(&comment,
1983 " Edit [%S]:",
1984 zTagUuid);
1985 branchMove = 0;
1986 if( permitHooks && db_exists("SELECT 1 FROM event, blob"
1987 " WHERE event.type='ci' AND event.objid=blob.rid"
1988 " AND blob.uuid='%s'", zTagUuid) ){
1989 zScript = xfer_commit_code();
1990 zUuid = zTagUuid;
 
 
1991 }
1992 }
1993 zName = p->aTag[i].zName;
1994 zValue = p->aTag[i].zValue;
1995 if( strcmp(zName, "*branch")==0 ){
1996

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button