Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add latest commit info reachable through API #371

Merged
merged 2 commits into from
Jan 5, 2017

Conversation

MaciejBaj
Copy link
Contributor

After call to /api/peers/version return build info if lisk was installed from binaries or last commit if installed using source.

closes #340

After call to /api/peers/version return build info if lisk was installed from binaries or last commit if installed using source.

closes LiskArchive#340
return setImmediate(cb, null, response);
}
catch (err) {
return setImmediate(cb, 'Git is not installed or not a git repository');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So when there is no build and no git / repository - that endpoint will fail entirely and not return version? Imo that endpoint should never fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I changed it, so always build and commit info are returned if exists.

Fix case when no response is returned when lisk was installed neither from source nor binaries.

fixes LiskArchive#371
@karmacoma karmacoma merged commit 801c6d0 into LiskArchive:development Jan 5, 2017
@MaciejBaj MaciejBaj deleted the commit-info branch January 11, 2017 14:47
MaciejBaj added a commit to MaciejBaj/lisk that referenced this pull request Jan 25, 2017
Fix case when no response is returned when lisk was installed neither from source nor binaries.

fixes LiskArchive#371
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add latest commit used used to build in /api/peers/version
3 participants