get_file_contents fetch refs improvements
#1655
Merged
get_file_contents fetch refs improvements
#1655