Only update description if exists
This commit is contained in:
parent
8660121457
commit
fa31161cb8
|
@ -33,12 +33,13 @@ def repositorySource():
|
|||
|
||||
m = {
|
||||
"repo_name" : repo_name,
|
||||
"description" : (repo.description or "not really known")[:255],
|
||||
"clone_addr" : repo.clone_url,
|
||||
"mirror" : True,
|
||||
"private" : repo.private,
|
||||
"uid" : gitea_uid,
|
||||
}
|
||||
|
||||
if repo.description: m["description"] = repo.description[:255]
|
||||
|
||||
status = giteaCreateRepo(m,repo.private)
|
||||
if status != 'failed':
|
||||
|
@ -62,4 +63,4 @@ def repositorySource():
|
|||
else:
|
||||
log(False)
|
||||
|
||||
saveLocalCache()
|
||||
saveLocalCache()
|
||||
|
|
Reference in a new issue