mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Small fixes in genrevision
This commit is contained in:
parent
2c9eae7599
commit
49307f6a13
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ void extractDataFromGit(FILE* EntriesFile, std::string path, bool url, RawData&
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int res = sscanf(url_str,"git://%s",url_buf);
|
res = sscanf(url_str,"git://%s",url_buf);
|
||||||
if(res)
|
if(res)
|
||||||
{
|
{
|
||||||
host_str = strtok(url_buf,"/");
|
host_str = strtok(url_buf,"/");
|
||||||
|
|
@ -127,7 +127,7 @@ void extractDataFromGit(FILE* EntriesFile, std::string path, bool url, RawData&
|
||||||
char buf2[200];
|
char buf2[200];
|
||||||
char new_hash[200];
|
char new_hash[200];
|
||||||
int unix_time = 0;
|
int unix_time = 0;
|
||||||
int res2 = sscanf(buf,"%s %s %s %s %i",buf2,new_hash,buf2,buf2,&unix_time,buf2);
|
int res2 = sscanf(buf,"%s %s %s %s %i",buf2,new_hash,buf2,buf2,&unix_time);
|
||||||
if(res2!=5)
|
if(res2!=5)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue