Skip to content

Conversation

buithanhhuy
Copy link

The command() function include both stdout and stderr in return string
Example: git describe
warning: tag 'v2.10' is really '17.05.0' here
v2.10

Remove option '2>&1' to discard the stderr stream in the output of command().

Bertrand Roussel and others added 4 commits November 18, 2015 15:39
Git describe return the tag name which could contain the warning (ex: warning: tag 'v2.10' is really '17.05.0' here). 
Adding option '2> /dev/null' which make sure no warning is added to tag name.
The command() function include both stdout and stderr in return string
Example: git describe
    warning: tag 'v2.10' is really '17.05.0' here
    v2.10

Remove option '2>&1' to discard the stderr stream in the output of command().
@buithanhhuy buithanhhuy force-pushed the master branch 21 times, most recently from f4fec0b to de2b693 Compare July 3, 2018 07:57
@buithanhhuy buithanhhuy force-pushed the master branch 2 times, most recently from 9e88cf7 to 138027f Compare July 3, 2018 08:46
@buithanhhuy buithanhhuy force-pushed the master branch 26 times, most recently from ac868c1 to 3c19e90 Compare July 11, 2018 09:43
@buithanhhuy buithanhhuy force-pushed the master branch 2 times, most recently from de81588 to ec3d447 Compare July 18, 2018 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants