You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/18 00:09:57 UTC
[23/29] git commit: move couch_version() to
couch_server:couch_version(short)
move couch_version() to couch_server:couch_version(short)
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/commit/88cd38fb
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/tree/88cd38fb
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/diff/88cd38fb
Branch: refs/heads/import
Commit: 88cd38fbbb90d8931b7acc71e8182d78e27a71db
Parents: 41cbe85
Author: Jan Lehnardt <ja...@apache.org>
Authored: Sat Aug 3 15:19:13 2013 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Thu Oct 3 16:08:37 2013 +0200
----------------------------------------------------------------------
src/couch_plugins.erl | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/blob/88cd38fb/src/couch_plugins.erl
----------------------------------------------------------------------
diff --git a/src/couch_plugins.erl b/src/couch_plugins.erl
index 507f114..2b110bc 100644
--- a/src/couch_plugins.erl
+++ b/src/couch_plugins.erl
@@ -264,9 +264,7 @@ does_file_exist({error, enoent}) -> false;
does_file_exist(_Else) -> true.
couchdb_version() ->
- %% strip git hash from version string
- [Version|_Rest] = string:tokens(couch_server:get_version(), "+"),
- Version.
+ couch_server:get_version(short).
% installing a plugin:
% - POST /_plugins -d {plugin-def}